Use docker-compose for local scanning

This commit is contained in:
Neil Martinsen-Burrell 2022-09-12 10:47:48 -05:00
parent 049bbac27e
commit f0a9866e0d
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
8 changed files with 12398 additions and 4 deletions

View file

@ -61,3 +61,17 @@ Linters:
```shell
docker-compose exec app ./manage.py lint
```
## Accessibility Scanning
The tool `pa11y-ci` is used to scan pages for compliance with a set of
accessibility rules. The scan runs as part of our CI setup (see
`.github/workflows/test.yaml`) but it can also be run locally. To run locally,
just
```shell
docker-compose run pa11y npm run pa11y-ci
```
The URLs that `pa11y-ci` will scan are configured in `src/.pa11yci`. When new
views and pages are added, their URLs should also be added to that file.