Skip to content

Poc ci accessibility #24

Poc ci accessibility

Poc ci accessibility #24

Workflow file for this run

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