Skip to content

Commit

Permalink
test: run storybook smoke test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hkfb committed Mar 10, 2024
1 parent 63c40b2 commit f9982e0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,13 @@ jobs:

- name: Build Storybook
run: npm run build-storybook

- name: Run smoke tests
env:
PORT: 8080
HOST: 127.0.0.1
run: |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port $PORT -a $HOST" \
"npx wait-on http://$HOST:$PORT/ && npm run storybook:test -- --ci --url http://$HOST:$PORT/"

0 comments on commit f9982e0

Please sign in to comment.