Librairie d'audit d'accessibilité

This commit is contained in:
2020-08-10 15:15:32 +02:00
parent 7f2ef25102
commit f3e5f7b9ef
4 changed files with 24 additions and 6 deletions

View File

@ -35,7 +35,7 @@ RUN apk add --no-cache \
chromium \
bash
RUN PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 npm install -g pa11y@next pa11y-reporter-html
RUN PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 npm install -g pa11y pa11y-reporter-html@^1.0.0 pa11y-reporter-junit
RUN adduser -D pa11y

View File

@ -1,7 +1,5 @@
#!/bin/bash
set -x
envtpl -o patty.json /home/pa11y/patty.json.tmpl
mkdir -p reports
@ -17,4 +15,4 @@ pa11y \
--include-warnings \
--include-notices \
--reporter "${PA11Y_REPORTER}" \
"$PA11Y_URL" > "pa11y.report.${PA11Y_REPORTER}" || exit 0
"$PA11Y_URL" || exit 0