Skip to content

Commit

Permalink
chore: add storybook ci
Browse files Browse the repository at this point in the history
  • Loading branch information
adguernier committed Aug 28, 2024
1 parent 8332ff2 commit db48d1c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/storybook-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Storybook Tests'
on: push
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm
- name: Install Playwright
run: npx playwright install --with-deps
- name: Build Storybook
run: npm run storybook:build --quiet
- name: Serve Storybook and run tests
run: |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port 6006 --silent" \
"npx wait-on tcp:6006 && yarn storybook:test"

0 comments on commit db48d1c

Please sign in to comment.