Poc ci accessibility #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Accessibility | |
on: | |
pull_request: | |
branches: | |
- "poc-ci-accessibility" | |
- main | |
jobs: | |
accessibility: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_BD: postgres | |
ports: | |
- 5432:5432 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build image | |
run: docker build -t local . | |
- name: Run django locally | |
run: | | |
docker run -d -p 0.0.0.0:8000:8000 local | |
docker ps | |
- name: Install pa11y-ci | |
run: npm install -g pa11y-ci | |
- name: Run Pa11y on the project | |
run: pa11y-ci --config ./.pa11yci --json --threshold 1 |