Fix performance tests: Install @lhci/cli, add Lighthouse CI configuration, and update CI workflow for Gitea compatibility

This commit is contained in:
adilallo
2025-08-29 16:53:55 -06:00
parent 64cccac9e7
commit e0d948d24c
5 changed files with 2377 additions and 1863 deletions
+20
View File
@@ -0,0 +1,20 @@
{
"ci": {
"collect": {
"url": ["http://localhost:3000/"],
"numberOfRuns": 3
},
"assert": {
"assertions": {
"categories:performance": ["warn", { "minScore": 0.9 }],
"categories:accessibility": ["error", { "minScore": 0.9 }],
"first-contentful-paint": ["warn", { "maxNumericValue": 2000 }],
"interactive": ["warn", { "maxNumericValue": 4000 }]
}
},
"upload": {
"target": "filesystem",
"outputDir": "lhci-results"
}
}
}