Accessibility Test #14
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 Test | |
on: | |
workflow_dispatch: | |
jobs: | |
accessibility: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' # Use the appropriate Node.js version for your project | |
- name: Install pa11x Accessibility checker | |
run: | | |
npm install -g pa11y | |
- name: Run Pa11y on local site | |
run: | | |
pa11y /home/runner/work/chatgpt-html/chatgpt-html/index.html --reporter=cli --threshold 25 |