Skip to content

Commit f53a14a

Browse files
committed
ci: test stories
1 parent 79637ee commit f53a14a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
ci:
1212
name: Install & Testing
1313
runs-on: ubuntu-latest
14+
container:
15+
image: mcr.microsoft.com/playwright:v1.52.0-noble
1416
steps:
1517
- uses: actions/checkout@v4
1618
- uses: actions/setup-node@v4
@@ -35,6 +37,13 @@ jobs:
3537
name: unit test results
3638
path: junit.xml
3739
reporter: jest-junit
40+
# test storybook tests
41+
- name: Serve Storybook static
42+
run: npx serve dist/docs -l 6006 &
43+
- name: Wait for Storybook to be ready
44+
run: npx wait-on http://127.0.0.1:6006
45+
- name: Run Storybook tests
46+
run: yarn test:stories --url http://127.0.0.1:6006
3847

3948
# publish docs
4049
docs_publish:

0 commit comments

Comments
 (0)