Skip to content

Commit

Permalink
test: run storybook smoke test in CI (#26)
Browse files Browse the repository at this point in the history
* test: run storybook smoke test in CI

* test: fix storybook test script
  • Loading branch information
hkfb authored Mar 10, 2024
1 parent 63c40b2 commit 6a05207
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 test:storybook -- --ci --url http://$HOST:$PORT/"

0 comments on commit 6a05207

Please sign in to comment.