Skip to content

Commit 417e5d8

Browse files
Run storybook tests on CI
1 parent aff522a commit 417e5d8

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/run-checks.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,24 @@ 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: Storybook Tests (axe-core) ♿️
2426
run: |
25-
yarn
26-
yarn build-storybook
27+
yarn storybook &
28+
echo "wait for storybook to start"
29+
until curl --output /dev/null --silent --head --fail http://localhost:6006; do
30+
printf '.'
31+
sleep 5
32+
done
33+
yarn test-storybook

0 commit comments

Comments
 (0)