Update axe.yaml #5
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: axe | |
on: | |
push: | |
branches: [axe-testing-508] | |
jobs: | |
axe: | |
name: Verify 508 Compliance | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
pages: | |
- home | |
- explore | |
- studies | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- run: npm ci --legacy-peer-deps | |
- run: npx concurrently "npm start" "npx wait-on http://localhost:3000" | |
- name: Run axe | |
run: | | |
npm install -g @axe-core/cli | |
axe http://localhost:3000/${{ matrix.pages }}\ | |
--save results/${{ matrix.pages }}-report.json | |
- name: Upload accessibility report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: axe-reports |