Skip to content

Commit

Permalink
feat: run storybook tests on pr/branch pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
thomhickey committed Dec 6, 2024
1 parent 16d7971 commit 83102c3
Show file tree
Hide file tree
Showing 3 changed files with 13,803 additions and 4,609 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,23 @@ jobs:
run: docker pull postgres:15
- name: Run tests
run: npm run test

storybook-tests:
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: yarn
- name: Install Playwright
run: npx playwright install --with-deps
- name: Build Storybook
run: yarn build-storybook --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:127.0.0.1:6006 && yarn test-storybook"
Loading

0 comments on commit 83102c3

Please sign in to comment.