Accessibility audit test #12
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 | |
# **What it does**: Regularly audits our live site for accessibility issues | |
# **Why we have it**: Because this is too time-consuming for a commit-level check, but absolutely something we should pay attention to. | |
# **Who does it impact**: PCX team / FE dev. | |
on: | |
pull_request: | |
branches: | |
- production | |
schedule: | |
- cron: '0 0 1 * *' # This cron expression triggers the workflow at 00:00 on the 1st day of every month | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Test accessibility | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.1 | |
- name: Install dependencies | |
run: npm install @actions/core pa11y puppeteer | |
- name: Run accessibility test | |
id: test-accessibility | |
run: npm run test-accessibility |