Merge pull request #321 from work933k/console-error-checking #385
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: Tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
uses: bahmutov/npm-install@v1 | |
- name: Run jest tests | |
run: | | |
yarn test --coverage | |
- name: Run test runner | |
run: | | |
yarn build | |
yarn test-storybook:ci-coverage | |
- name: Generate code coverage | |
uses: codecov/codecov-action@v2 | |
with: | |
verbose: true |