forked from arc53/DocsGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(CI): Add pa11y-ci accessibility check for frontend * Remove about page from pa11yci config since it is deprecated.
- Loading branch information
1 parent
4dd0d65
commit ad0f02f
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"urls": [ | ||
"http://localhost:4173", | ||
"http://localhost:4173/settings" | ||
] | ||
} |