Skip to content

Commit

Permalink
Set up CI to run storybook tests
Browse files Browse the repository at this point in the history
  • Loading branch information
laurakwhit committed Jun 13, 2024
1 parent 88921e3 commit aa50b63
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/storybook-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Storybook Tests
on: deployment_status
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
if: github.event.deployment_status.state == 'success'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: pnpm install
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run Storybook tests
run: pnpm stories:test
env:
TARGET_URL: '${{ github.event.deployment_status.target_url }}'

0 comments on commit aa50b63

Please sign in to comment.