Skip to content

Commit

Permalink
Run storybook tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
angelikatyborska committed Aug 19, 2024
1 parent aff522a commit 6ce0603
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/run-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,27 @@ jobs:
with:
node-version: '18.16.1'

- name: Install dependencies ⚙️
run: yarn

- name: Lint 👀
run: |
yarn
yarn lint
run: yarn lint

- name: Test 🚀
run: |
yarn
yarn test
run: yarn test

- name: Build Storybook 📖
run: yarn build-storybook

- name: Setup Playwright for Storybook tests
run: yarn playwright install

- name: Storybook Tests (axe-core) ♿️
run: |
yarn
yarn build-storybook
yarn storybook &
echo "wait for storybook to start"
until curl --output /dev/null --silent --head --fail http://localhost:6006; do
printf '.'
sleep 5
done
yarn test-storybook

0 comments on commit 6ce0603

Please sign in to comment.