Skip to content

Commit

Permalink
Add storybook test support in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jandrade committed Nov 27, 2024
1 parent 508d892 commit f111d08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/chromatic-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ jobs:
os: [ubuntu-latest]
node-version: [20.x]
steps:
- name: Run Storybook tests
run: yarn test:storybook
env:
SB_URL: '${{ needs.chromatic_review.outputs.storybookUrl }}'
# Create/update PR comment with Chromatic results
- name: Find existing comment
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"start:storybook": "storybook dev -p 6061",
"test:common": "yarn run build && yarn run lint && yarn run typecheck && yarn run alex",
"test:coverage": "yarn run test:common && yarn run jest --coverage",
"test:storybook": "vitest --project=storybook",
"test": "yarn run jest && yarn run test:common",
"typecheck": "tsc",
"typewatch": "tsc --noEmit --watch --incremental",
Expand Down

0 comments on commit f111d08

Please sign in to comment.