use test-storybook script in ci #2
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
# .github/workflows/storybook-tests.yml | |
name: 'Storybook Tests' | |
on: push | |
jobs: | |
test: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- name: Install dependencies | |
run: npm install | |
- name: Install Playwright | |
run: npx playwright install --with-deps | |
- name: Serve Storybook and run tests | |
run: | | |
npm run test-storybook:ci |