Skip to content

Commit 9e7aa03

Browse files
wuztatianamac
andauthored
⚒️ 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>
1 parent cbdf017 commit 9e7aa03

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/a11y.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Accessibility Audit
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lhci:
7+
name: Lighthouse
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Use Node.js 10.x
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: 10.x
15+
- name: npm install, build
16+
run: |
17+
npm install
18+
npm run build
19+
- name: run Lighthouse CI
20+
run: |
21+
npm install -g @lhci/cli@0.4.x
22+
lhci autorun

lighthouserc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
ci: {
3+
upload: {
4+
target: 'temporary-public-storage',
5+
},
6+
assert: {
7+
preset: "lighthouse:no-pwa",
8+
assertions: {
9+
"font-display": "off",
10+
"uses-rel-preconnect": "off",
11+
"render-blocking-resources": "off",
12+
"uses-long-cache-ttl": "off"
13+
}
14+
}
15+
},
16+
};

0 commit comments

Comments
 (0)