Skip to content

Commit 6ce0603

Browse files
Run storybook tests on CI
1 parent aff522a commit 6ce0603

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/run-checks.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,27 @@ jobs:
1010
with:
1111
node-version: '18.16.1'
1212

13+
- name: Install dependencies ⚙️
14+
run: yarn
15+
1316
- name: Lint 👀
14-
run: |
15-
yarn
16-
yarn lint
17+
run: yarn lint
1718

1819
- name: Test 🚀
19-
run: |
20-
yarn
21-
yarn test
20+
run: yarn test
2221

2322
- name: Build Storybook 📖
23+
run: yarn build-storybook
24+
25+
- name: Setup Playwright for Storybook tests
26+
run: yarn playwright install
27+
28+
- name: Storybook Tests (axe-core) ♿️
2429
run: |
25-
yarn
26-
yarn build-storybook
30+
yarn storybook &
31+
echo "wait for storybook to start"
32+
until curl --output /dev/null --silent --head --fail http://localhost:6006; do
33+
printf '.'
34+
sleep 5
35+
done
36+
yarn test-storybook

0 commit comments

Comments
 (0)