Update package.json #153
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: unit tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build-and-test: | |
name: Build and run tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: ["14.x", "16.x"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn install | |
- name: Build with craco | |
run: yarn build | |
- name: Lint with standard | |
run: yarn lint | |
- name: Test with jest | |
run: yarn test |