Skip to content

Commit

Permalink
Pa11y ci (#2)
Browse files Browse the repository at this point in the history
* feat(CI): Add pa11y-ci accessibility check for frontend

* Remove about page from pa11yci config since it is deprecated.
  • Loading branch information
abhiram6121 authored Oct 22, 2024
1 parent 4dd0d65 commit ad0f02f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pa11y-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: pa11y-ci
on:
workflow_dispatch:
push:
branches:
- main

jobs:
pa11y-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
working-directory: frontend
run: |
npm ci
npm install -g https://github.com/aarongoldenthal/pa11y-ci
- name: Build
working-directory: frontend
run: npm run build
- name: Start Preview
working-directory: frontend
run: |
npm run preview & sleep 3
- name: Run pa11y-ci
working-directory: frontend
run: pa11y-ci
continue-on-error: true
6 changes: 6 additions & 0 deletions frontend/.pa11yci
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"urls": [
"http://localhost:4173",
"http://localhost:4173/settings"
]
}

0 comments on commit ad0f02f

Please sign in to comment.