-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3343b6
commit d2bf129
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: "a11y-test" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- packages/wow-ui/src/** | ||
|
||
jobs: | ||
interaction-and-accessibility: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20.x | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- name: Install Dependency | ||
run: pnpm install --no-frozen-lockfile | ||
working-directory: packages/wow-ui | ||
|
||
- name: Install Playwright | ||
run: pnpm install playwright --save-dev | ||
|
||
- name: Build Storybook | ||
run: pnpm build-storybook --quiet | ||
|
||
- name: Serve Storybook and run tests | ||
run: | | ||
pnpm concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ | ||
"pnpm http-server storybook-static --port 6006 --silent" \ | ||
"pnpm wait-on tcp:6006 && pnpm test-storybook" | ||