feat: add a11y testing to storybook #13
Workflow file for this run
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
name: A11y tests | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
test-ci-a11y: | |
name: A11y ci tests | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.draft == true | |
container: | |
image: mcr.microsoft.com/playwright:v1.49.1-noble | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 9.15.0 | |
run_install: false | |
- name: Install dependencies | |
run: pnpm i | |
- name: Build | |
run: cd packages/docs && pnpm build | |
- name: Verify everything | |
run: cd packages/docs && pnpm test |