Poc ci accessibility #15
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 tests | |
run: docker run -it -p 127.0.0.1:8000:8000 local | |
- name: Install pa11y-ci | |
run: npm install -g pa11y-ci | |
- name: Run Pa11y on the project | |
run: pa11y-ci http://127.0.0.1:8000/ |