Skip to content

Commit b87998c

Browse files
committed
add lesson 2-2: lighthouse CI end
1 parent 2627d1a commit b87998c

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/performance.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v2
1212

13-
- uses: actions/setup-node@v1
13+
- uses: actions/setup-node@v2
1414
with:
1515
node-version: 14
1616
cache: 'npm'

22-lighthouse/lighthouserc.js

+24
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,30 @@ module.exports = {
22
ci: {
33
assert: {
44
preset: "lighthouse:no-pwa",
5+
assertions: {
6+
// Performance related
7+
"font-display": "off",
8+
"unsized-images": "off",
9+
"unused-css-rules": "off",
10+
"unused-javascript": "off",
11+
"uses-optimized-images": "off",
12+
"uses-responsive-images": "off",
13+
"unminified-css": "off",
14+
"third-party-facades": "off",
15+
"offscreen-images": "off",
16+
// Not performance related
17+
"tap-targets": "off",
18+
"non-composited-animations": "off",
19+
"button-name": "off",
20+
"color-contrast": "off",
21+
"csp-xss": "off",
22+
"errors-in-console": "off",
23+
"external-anchors-use-rel-noopener": "off",
24+
"heading-order": "off",
25+
"link-name": "off",
26+
"meta-description": "off",
27+
"uses-text-compression": "off",
28+
},
529
},
630
},
731
};

0 commit comments

Comments
 (0)