Skip to content

Commit

Permalink
feat: integrate Lighthouse CI and add performance assertions in new w…
Browse files Browse the repository at this point in the history
…orkflow
  • Loading branch information
amalv committed Jan 21, 2024
1 parent 4e194f4 commit a570814
Show file tree
Hide file tree
Showing 4 changed files with 2,795 additions and 122 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ coverage/
/blob-report/
/playwright/.cache/
/playwright/.auth

# lighthouse reports
/lhci_reports
.lighthouseci
21 changes: 21 additions & 0 deletions lighthouserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"ci": {
"collect": {
"url": ["http://localhost:5173"],
"numberOfRuns": 1
},
"assert": {
"assertions": {
"first-contentful-paint": ["warn", { "maxNumericValue": 6700 }],
"speed-index": ["warn", { "maxNumericValue": 8500 }],
"largest-contentful-paint": ["warn", { "maxNumericValue": 8500 }],
"interactive": ["warn", { "maxNumericValue": 11000 }]
}
},
"upload": {
"target": "filesystem",
"outputDir": "./lhci_reports",
"output": ["html"]
}
}
}
Loading

1 comment on commit a570814

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.