-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Github action for running Storybook tests (#2160)
* Add storybook test-runner * Update storybook dependencies * Make test-runner work with Svelte CSF * Set up CI to run storybook tests * Fix play functions * Fix test:coverage
- Loading branch information
1 parent
4aeaa92
commit 61ea6fe
Showing
5 changed files
with
3,818 additions
and
1,202 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
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 | ||
- name: Checkout and Setup Node | ||
uses: ./.github/actions/checkout-and-setup | ||
- name: Install Playwright | ||
run: pnpm exec playwright install --with-deps | ||
- name: Run Storybook tests | ||
run: pnpm stories:test | ||
env: | ||
TARGET_URL: '${{ github.event.deployment_status.target_url }}' |
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
Oops, something went wrong.