Merge pull request #12 from blackphoenix42/dependabot/npm_and_yarn/po… #27
This file contains hidden or 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 | |
| on: | |
| pull_request: | |
| push: | |
| branches: [master] | |
| concurrency: | |
| group: a11y-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pa11y: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version-file: .node-version | |
| cache: npm | |
| - name: Install deps | |
| run: npm ci | |
| - name: Build site | |
| run: npm run build --if-present || npx vite build | |
| - name: Run pa11y-ci against preview | |
| run: npm run a11y:ci | |
| - name: Save JSON report (optional) | |
| if: always() | |
| run: npm run a11y:report || true | |
| - name: Upload a11y reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: a11y-report | |
| path: reports/a11y/ |