-
Notifications
You must be signed in to change notification settings - Fork 27
36 lines (31 loc) · 1.15 KB
/
pa11y_test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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 12:12 every Friday
# It can also be run manually from repo's Gihthub page
#----------------------------------------------------------------
name: Pa11ly Accessibitly Check
on:
workflow_dispatch:
schedule:
- cron: '12 12 * * 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://raw.githubusercontent.com/${GITHUB_REPOSITORY}/develop/.github/sitemap.xml \
--sitemap-exclude 'pdf$'