Pa11ly Accessibitly Check #11
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
# Pa11y: A tool to check accessibility issue on a webpage | |
# The config file and sitemap file used by this workflow | |
# is in the ".github" directory of the repositiory | |
# | |
# This workflow is configured to run weekly on 13:13 every Friday | |
# It can also be run manually from repo's Gihthub page | |
#---------------------------------------------------------------- | |
name: Pa11ly Accessibitly Check | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '13 13 * * FRI' | |
jobs: | |
pa11ly: | |
name: Pa11ly Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Set up Node.js 22.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
- name: Install Pa11ly CI | |
run: npm install -g pa11y-ci | |
- name: Run Pa11ly CI | |
run: | | |
pa11y-ci \ | |
--config ${GITHUB_WORKSPACE}/.github/pa11y.config \ | |
--sitemap https://data.scilifelab.se/sitemap.xml \ | |
--sitemap-exclude 'pdf$' |