Place pa11y outside docker for gh action

Try running pa11y as a seperate step

Add install for pa11y in gh action

Add path for package.json

Change app to localhost in pa11yci

Change path for disabling middlewar in gh step

Update path again for perl line

Add rule to ignore whoami link in pa11yci

Revert "Update path again for perl line"

This reverts commit f08324a9463a666ef665e42af1983d84154e708b.
This commit is contained in:
igorkorenfeld 2023-04-17 18:02:43 -04:00
parent 2df5ecb193
commit 84a78635d0
No known key found for this signature in database
GPG key ID: 826947A4B867F659
2 changed files with 33 additions and 21 deletions

View file

@ -43,9 +43,15 @@ jobs:
run: |
perl -pi \
-e 's/"csp.middleware.CSPMiddleware",/$&"registrar.tests.common.MockUserLogin",/' \
src/registrar/config/settings.py
/registrar/config/settings.py
- name: Accessibility Scan
- name: Start container
working-directory: ./src
# leverage the docker compose setup that we already have for local development
run: docker compose run pa11y npm run pa11y-ci
run: docker compose up -d
- name: run pa11y
working-directory: ./src
run: |
npm i -g pa11y-ci
pa11y-ci