fix workflows #12
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 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
- name: Install dependencies | |
uses: bahmutov/npm-install@v1 | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run tests in webpack example | |
run: yarn test-storybook:ci-coverage | |
working-directory: examples/webpack5 | |
- name: Run tests in vite example | |
run: yarn test-storybook:ci-coverage | |
working-directory: examples/vite | |
- name: Generate code coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
verbose: true |