Skip to content

Commit

Permalink
Merge pull request #4397 from randychilau/lhci
Browse files Browse the repository at this point in the history
[LHCI] Resolve Lighthouse CI Performance Test Error and Added Desktop Audit
  • Loading branch information
Nikhil-Ladha committed Aug 17, 2023
2 parents 361ca7d + 1db3920 commit 3985415
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .desktop-lighthouserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
module.exports = {
"ci": {
"collect": {
"settings": {
"preset": "desktop"
},
"staticDistDir": "./public",
"url": [
"http://localhost/404/index.html?desktop",
"http://localhost/?desktop",
"http://localhost/company/about/index.html?desktop",
"http://localhost/cloud-native-management/meshery/index.html?desktop",
"http://localhost/cloud-native-management/meshmap/index.html?desktop",
"http://localhost/learn/learning-paths/index.html?desktop",
"http://localhost/learn/service-mesh-books/index.html?desktop",
"http://localhost/learn/service-mesh-workshops/index.html?desktop",
"http://localhost/learn/index.html?desktop",
"http://localhost/blog/index.html?desktop",
"http://localhost/resources/index.html?desktop",
"http://localhost/careers/index.html?desktop",
"http://localhost/community/members/index.html?desktop",
"http://localhost/community/meshmates/index.html?desktop",
"http://localhost/community/events/index.html?desktop",
"http://localhost/community/newcomers/index.html?desktop",
],
},
"assert": {
"assertions": {
"categories:performance": ["warn", {"minScore": .90}],
"categories:accessibility": ["warn", {"minScore": .90}],
"categories:best-practices": ["warn", {"minScore": .90}],
"categories:seo": ["warn", {"minScore": .90}],
}
},
"upload": {
"target": "temporary-public-storage",
},
}
};
3 changes: 3 additions & 0 deletions .github/workflows/lighthouseci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ jobs:
node-version: 19
- run: npm install && npm install -g @lhci/cli@0.11.x
- run: CI=false npm run build
- run: lhci collect --config=.desktop-lighthouserc.js
- run: lhci assert --config=.desktop-lighthouserc.js
- run: lhci upload
- run: lhci autorun
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3985415

Please sign in to comment.