Prepare for SB10 #1014
This file contains hidden or 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: [20.16.0] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
uses: bahmutov/npm-install@v1 | |
- name: Build | |
run: | | |
yarn build | |
- name: Run unit tests | |
run: | | |
yarn test --coverage | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run test runner | |
run: | | |
yarn test-storybook:ci-coverage | |
- name: Generate code coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
verbose: true |