Skip to content

Commit

Permalink
Merge pull request #55 from bibliopolitica/a11y-remediation
Browse files Browse the repository at this point in the history
A11y remediation
  • Loading branch information
mnyrop authored Jun 25, 2024
2 parents 39356f1 + 30e09fc commit c44625f
Show file tree
Hide file tree
Showing 23 changed files with 3,436 additions and 4,832 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ jobs:
node-version: 'v18.16.0'
- name: install
run: npm install
- name: test links
run: npm run test
- name: test build
run: npm run test:build
- name: test a11y
continue-on-error: true
run: sh axe.sh
- name: build
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
run: npm run test:a11y
- name: build for deployment
run: npm run build
- name: deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

jobs:
deploy:
test:
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -21,7 +21,9 @@ jobs:
node-version: 'v18.16.0'
- name: install
run: npm install
- name: test links
run: npm run test
- name: test build
run: npm run test:build
- name: test a11y
run: sh axe.sh
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
run: npm run test:a11y
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist
node_modules
.DS_Store
.DS_Store
.lighthouseci
18 changes: 18 additions & 0 deletions .lighthouserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ci:
collect:
numberOfRuns: 1
startServerCommand: 'npm start'
url:
- http://localhost:8080/
- http://localhost:8080/about/project.html
- http://localhost:8080/about/library-timeline.html
- http://localhost:8080/browse/items.html
- http://localhost:8080/exhibit/en/1.html
- http://localhost:8080/item/CSL00094.html
- http://localhost:8080/history/OH001.html
assert:
assertions:
categories:performance: off
categories:pwa: off
upload:
target: temporary-public-storage
7 changes: 0 additions & 7 deletions axe.sh

This file was deleted.

Loading

0 comments on commit c44625f

Please sign in to comment.