Add accessilbilty check and fixes
All checks were successful
/ build (push) Successful in 18s
/ accessibility (push) Successful in 1m11s

This commit is contained in:
Stefan Bethke 2026-10-17 01:26:09 +02:00
commit 18d9cc15e7
16 changed files with 206 additions and 29 deletions

View file

@ -78,3 +78,26 @@ jobs:
with:
name: website-build
path: public/
# Separate from the build, so that accessibility findings show up on PRs without blocking deploys.
accessibility:
runs-on: docker
container:
image: docker.io/hugomods/hugo:0.165.0
steps:
- name: Install packages
run: |
apk update
# For CI actions and pa11y.
apk add nodejs-current npm
# For website build.
apk add tzdata git
# For pa11y: a browser, fonts for it, and a web server for the built site.
apk add chromium font-dejavu python3
- uses: actions/checkout@v7
with:
submodules: recursive
- name: Check accessibility with pa11y
run: ./scripts/pa11y.sh