⚒️ Adds accessibility action (#253)

* Add lighthouse run

* Add lighthouse run

* Update lighthouse configuration

* Remove extra lighthouse files

* Update lighthouserc.js

* Update lighthouserc.js

* Update lighthouserc.js

Co-authored-by: Tatiana Mac <github@tatianamac.com>
This commit is contained in:
Conlin Durbin 2021-04-26 23:01:32 -04:00 committed by GitHub
parent cbdf017d29
commit 9e7aa0346b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

22
.github/workflows/a11y.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Accessibility Audit
on: [push, pull_request]
jobs:
lhci:
name: Lighthouse
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: npm install, build
run: |
npm install
npm run build
- name: run Lighthouse CI
run: |
npm install -g @lhci/cli@0.4.x
lhci autorun

16
lighthouserc.js Normal file
View File

@ -0,0 +1,16 @@
module.exports = {
ci: {
upload: {
target: 'temporary-public-storage',
},
assert: {
preset: "lighthouse:no-pwa",
assertions: {
"font-display": "off",
"uses-rel-preconnect": "off",
"render-blocking-resources": "off",
"uses-long-cache-ttl": "off"
}
}
},
};