Skip to content

Commit

Permalink
docs: 웹 접근성 테스트 자동화 워크플로우 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
ghdtjgus76 committed May 13, 2024
1 parent e3343b6 commit d2bf129
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/a11y-test.yml
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"

0 comments on commit d2bf129

Please sign in to comment.