mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-22 09:20:00 +00:00
⚒️ 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:
parent
cbdf017d29
commit
9e7aa0346b
22
.github/workflows/a11y.yml
vendored
Normal file
22
.github/workflows/a11y.yml
vendored
Normal 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
16
lighthouserc.js
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
Loading…
x
Reference in New Issue
Block a user