Add a11ign to your workflow
Option 1: GitHub Action
You don’t need a Windows machine. GitHub provides one.
jobs:
a11y:
runs-on: windows-2022
steps:
- uses: actions/checkout@v7
- uses: a11ign/a11ign@<release-commit>
with:
url: https://example.com/contact
task: Send an enquiryCheck the version it pins. It should be a full 40-character commit from an a11ign@ release.
- Save it as
.github/workflows/a11ign.yml - Open a pull request
- Read the report in the comment
Or hand it to your AI agent
Install the skill, then ask in plain words.
- Install the skillClaude Code
[Claude Code install command, to be added when the skill is published]Codex[Codex install command, to be added when the skill is published] - Ask in plain wordsExample
Use the a11ign skill to add screen reader testing to this repo. Test https://staging.example.com/checkout and run it on every pull request.Say which page to test and what a user does there. Leave it out and your agent will ask. It then opens a pull request for you to review.
Agent without skill support? Use this prompt instead
Add a11ign to this repository as a GitHub Action.
a11ign runs the NVDA screen reader over web pages and reports accessibility barriers, quoting what NVDA said. It needs a Windows runner, which GitHub provides.
If I have not told you, ask me for (a) the page URL to test and (b) one sentence on what a user does there, for example "Send an enquiry".
1. Find the latest release: run git ls-remote https://github.com/a11ign/a11ign "refs/tags/a11ign@*". Use that release’s full 40-character commit SHA (not a tag or branch) and note the release name in a comment.
2. Create .github/workflows/a11ign.yml. Trigger on pull_request and workflow_dispatch. Use runs-on: windows-2022, timeout-minutes: 20, and permissions contents: read and pull-requests: write.
3. Steps: actions/checkout; then a11ign/a11ign at that SHA with id: a11ign, url and task set from my answers; then actions/upload-artifact with if: always() to keep the result-json and summary-md outputs.
4. Leave fail-on at its default so findings cannot fail the build. Do not turn on probe-forms.
5. Add no API keys or secrets. None are needed.
6. Open a pull request with the change and tell me what to expect: the report appears as a comment on the pull request, and the result files are saved with the run.
Do not say the site is accessible or compliant. The report lists findings for a person to check.Option 2: Command line
Run it from your own machine. a11ign needs a Windows machine with NVDA to drive.
- Set up a Windows machine with NVDA
Already have one? Run this in an elevated PowerShell on it. It installs Node, Git and NVDA, starts the worker, then restarts the machine. That restart is expected.
Set-ExecutionPolicy -Scope Process Bypass -Force
irm https://raw.githubusercontent.com/a11ign/screenreader-fleet/main/packages/worker-fleet/src/provisioning/bootstrap-windows-worker.ps1 | iexNo Windows machine? On a Mac you can build a Windows virtual machine with the scripts in a11ign/screenreader-fleet (opens in a new tab). Most of the wait is downloading Windows.
- Tell a11ign where it is
export A11Y_WORKER=http://<that-machine>:8765
curl $A11Y_WORKER/health- Run it
npx a11ign https://example.com --task "Find the contact details"Something not working? Run pnpm run doctor in a11ign/control. It checks each step and prints the fix.
What you need
For the GitHub Action
- A GitHub project
- GitHub Actions minutes. a11ign is free, but in a private repository runs use Windows minutes, which cost more than Linux ones
For the command line
- Node.js 20 or newer
- A Windows machine with NVDA, set up with one command (step 1)