Skip to content

Accessibility audit test #12

Accessibility audit test

Accessibility audit test #12

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