This repository has been archived by the owner on Aug 6, 2024. It is now read-only.
Storybook Tests #531
Workflow file for this run
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: deployment_status | |
# Change the working directory for all the jobs in this workflow | |
defaults: | |
run: | |
working-directory: packages/design-system | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
if: github.event.deployment_status.state == 'success' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16.x' | |
- name: Install dependencies | |
run: yarn | |
- name: Install Playwright | |
run: npx playwright install --with-deps | |
- name: Run Storybook tests | |
run: yarn test-storybook | |
env: | |
TARGET_URL: '${{ github.event.deployment_status.target_url }}' |