accessibility linter #14
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: Accessibility Checks | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
accessibility: | |
name: Run Accessibility Checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
if: matrix.language == 'javascript-typescript' | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: 'pnpm' | |
cache-dependency-path: frontend/pnpm-lock.yaml | |
- name: Enable Corepack (for pnpm) | |
run: corepack enable | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 10 | |
run_install: false | |
- name: Verify pnpm installation | |
run: pnpm --version | |
- name: Install dependencies | |
working-directory: frontend | |
run: pnpm install --frozen-lockfile | |
- name: Run ESLint for accessibility | |
working-directory: frontend | |
run: pnpm eslint src --ext .js,.jsx,.ts,.tsx | |
- name: Run Jest accessibility tests | |
working-directory: frontend | |
run: pnpm test --testPathPattern="__tests__/accessibility" |