Skip to content

Commit 3985415

Browse files
authored
Merge pull request #4397 from randychilau/lhci
[LHCI] Resolve Lighthouse CI Performance Test Error and Added Desktop Audit
2 parents 361ca7d + 1db3920 commit 3985415

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed

.desktop-lighthouserc.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
module.exports = {
2+
"ci": {
3+
"collect": {
4+
"settings": {
5+
"preset": "desktop"
6+
},
7+
"staticDistDir": "./public",
8+
"url": [
9+
"http://localhost/404/index.html?desktop",
10+
"http://localhost/?desktop",
11+
"http://localhost/company/about/index.html?desktop",
12+
"http://localhost/cloud-native-management/meshery/index.html?desktop",
13+
"http://localhost/cloud-native-management/meshmap/index.html?desktop",
14+
"http://localhost/learn/learning-paths/index.html?desktop",
15+
"http://localhost/learn/service-mesh-books/index.html?desktop",
16+
"http://localhost/learn/service-mesh-workshops/index.html?desktop",
17+
"http://localhost/learn/index.html?desktop",
18+
"http://localhost/blog/index.html?desktop",
19+
"http://localhost/resources/index.html?desktop",
20+
"http://localhost/careers/index.html?desktop",
21+
"http://localhost/community/members/index.html?desktop",
22+
"http://localhost/community/meshmates/index.html?desktop",
23+
"http://localhost/community/events/index.html?desktop",
24+
"http://localhost/community/newcomers/index.html?desktop",
25+
],
26+
},
27+
"assert": {
28+
"assertions": {
29+
"categories:performance": ["warn", {"minScore": .90}],
30+
"categories:accessibility": ["warn", {"minScore": .90}],
31+
"categories:best-practices": ["warn", {"minScore": .90}],
32+
"categories:seo": ["warn", {"minScore": .90}],
33+
}
34+
},
35+
"upload": {
36+
"target": "temporary-public-storage",
37+
},
38+
}
39+
};

.github/workflows/lighthouseci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ jobs:
1616
node-version: 19
1717
- run: npm install && npm install -g @lhci/[email protected]
1818
- run: CI=false npm run build
19+
- run: lhci collect --config=.desktop-lighthouserc.js
20+
- run: lhci assert --config=.desktop-lighthouserc.js
21+
- run: lhci upload
1922
- run: lhci autorun

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)