CI workflow for regression testing¶
Use this after baselines and policies. A full GitHub Actions example lives on the CI page.
Recommended steps¶
- Checkout including
.a11yst/baseline.jsonif you track it. - Install Node.js, app dependencies, and Playwright Chromium.
- Build or start the app so
baseUrlresponds. - Run
a11yst auditwith JSON and reports. - Read the exit code (2 is a policy breach, 1 is operational).
- Upload
.a11yst/results/for review.
Baseline in CI¶
| Practice | Detail |
|---|---|
| Store baseline in git | Same comparison reference on every branch |
| Do not auto-update in CI | Update locally after review, then commit |
Use --dry-run locally |
Preview baseline changes before --yes |
Creating a baseline on every CI run defeats regression detection.