Automated accessibility testing for every pull request
Add the GetWCAG GitHub Action to your CI/CD pipeline. It checks your pages for WCAG 2.2 issues, comments on the pull request with what changed, and only fails the build when a change adds new issues.
GetWCAG: 2 new accessibility issues
| Issue | Page | Elements |
|---|---|---|
| Critical Form field has no label | /shop | 1 |
| Critical Button has no name | /shop | 1 |
0 fixed · 4 still open from before · Open in GetWCAG
How to add accessibility testing to GitHub Actions
Step 1
Create a key
Open your project in GetWCAG, go to CI checks and create a key. Save it as a secret in your repository.
Step 2
Add the workflow
Add one file to .github/workflows. You don't need to list your pages: they're found from your sitemap and links.
Step 3
Open a pull request
Every pull request gets a comment that lists new, fixed and remaining issues, with a link to the full results.
name: Accessibility
on:
pull_request:
push:
branches: [main]
workflow_dispatch: # lets you run it by hand from the Actions tab
concurrency:
group: getwcag-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
jobs:
getwcag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci && npm run build
- uses: GetWCAG-App/scan-action@v1
with:
api-key: ${{ secrets.GETWCAG_API_KEY }}
start: npm start
wait-for: http://localhost:3000Only new issues fail the build
Your main branch is the baseline. Each pull request is compared with it page by page, so issues you already have never block a merge. By default, the check fails only when a change adds a serious or critical issue, and you can choose the level. A team with hundreds of known issues can turn it on today and stop adding more.
Finds your pages automatically
The action reads your sitemap and follows links on the copy of your site running in CI. It checks one or two pages of each kind, like a product page or a blog post, so every template is covered without checking thousands of pages. Pin the pages that matter most, like checkout or sign-up, and they're checked every time.
What automated testing catches, and what it doesn't
Automated checks find issues like missing alt text, form fields without labels, low color contrast and broken ARIA, using the same WCAG 2.2 A and AA rules as GetWCAG scans, built on axe-core. They can't tell whether a page makes sense with a screen reader or works well with a keyboard alone. That's what manual testing in GetWCAG is for.
Part of your GetWCAG project
CI checks guard new code before it's merged. Your scans keep covering the whole live site, and issue tracking, manual testing and compliance reports stay in your project. Every CI run is listed there too, so the whole team sees the same results.
Runs before you deploy, and stays private
Pages are checked on your own CI machine, on the copy of your site the workflow starts, so you don't need a preview deployment and GetWCAG never visits your site. Only cleaned issue details are sent, with form values, tokens and email addresses removed. Results are kept for 90 days, or 7, 30 or 60 days if you choose.
Coming next
npm package for Playwright
Check pages behind a login and app states from the end-to-end tests you already have, with the same baseline and pull request comments.
More CI providers
GitLab, Bitbucket and others. Tell us which one you use.
Tell us what you need
CI checks on every plan
CI runs are counted separately from your scan pages, so pull requests never use up your scans.
| Plan | Runs per month | Pages per run |
|---|---|---|
| free | 5 | 3 |
| basic | 200 | 25 |
| starter | 1,000 | 50 |
| growth | 5,000 | 100 |
| business | 15,000 | 250 |
| enterprise | 50,000 | 500 |
Frequently asked questions
What is accessibility testing in CI/CD?
It runs automated accessibility checks every time code changes, so issues are found in the pull request instead of on the live site.
Do I need to list every page?
No. Pages are found from your sitemap and links. You can pin important pages or leave some out.
Will our existing issues block every pull request?
No. Only issues the pull request adds count. Existing issues stay in your GetWCAG project to fix at your own pace.
Does it work with GitLab, Bitbucket or Jenkins?
Not yet. It's a GitHub Action for now, and more CI providers are on the roadmap.
Can it test pages behind a login?
It can send headers, like a token for a preview environment. For flows where you have to sign in, the upcoming Playwright package will check pages inside your existing tests.
Does GetWCAG need access to my code?
No. The action runs in your workflow and sends only cleaned results, never your source code.
What counts as a run?
One check of one commit. Re-running a job on the same commit doesn't use another run.
Is there a free plan?
Yes. The free plan includes 5 runs a month with up to 3 pages per run.