-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.08 KB
/
accessibility-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Workflow name
name: "Accessibility Test"
# Event for the workflow
on: push
# List of jobs
jobs:
# Run interaction and accessibility tests
accessibility:
name: Accessibility tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# Make sure the actual branch is checked out when running on pull requests.
with:
ref: ${{ github.head_ref }}
fetch-depth: 0 # 👈 Required to retrieve git history
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: yarn
- name: Install Playwright
run: npx playwright install --with-deps
- name: Build Storybook
run: yarn build-storybook --quiet
- name: Serve Storybook and run tests
run: |
export FORCE_COLOR=1
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port 6006 --silent" \
"npx wait-on tcp:6006 && yarn test-storybook"