Skip to content

Commit 646829d

Browse files
Run storybook tests on CI
1 parent aff522a commit 646829d

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

.github/workflows/run-checks.yml

Lines changed: 21 additions & 11 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: Lint 👀
14-
run: |
15-
yarn
16-
yarn lint
13+
- name: Install dependencies ⚙️
14+
run: yarn
1715

18-
- name: Test 🚀
19-
run: |
20-
yarn
21-
yarn test
16+
# - name: Lint 👀
17+
# run: yarn lint
18+
#
19+
# - name: Test 🚀
20+
# run: yarn test
21+
#
22+
# - name: Build Storybook 📖
23+
# run: yarn build-storybook
24+
25+
- name: Setup Playwright for Storybook tests
26+
run: yarn playwright install
2227

23-
- name: Build Storybook 📖
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)