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
+4 -3
View File
@@ -20,10 +20,11 @@
"e2e:ui": "playwright test --ui",
"e2e:performance": "playwright test tests/e2e/performance.spec.ts",
"lhci": "lhci autorun",
"lhci:mobile": "lhci autorun --config=lighthouserc.json --settings.preset=mobile",
"lhci:desktop": "lhci autorun --config=lighthouserc.json --settings.preset=desktop",
"lhci:mobile": "lhci autorun --config=.lighthouserc.json --settings.preset=mobile",
"lhci:desktop": "lhci autorun --config=.lighthouserc.json --settings.preset=desktop",
"performance:budget": "lhci autorun --budgetPath=performance-budgets.json",
"performance:monitor": "node scripts/performance-monitor.js",
"test:lhci": "node scripts/test-lhci.js",
"preview": "next build && next start -p 3000",
"e2e:serve": "start-server-and-test preview http://localhost:3000 e2e",
"seed-snapshots": "./scripts/seed-snapshots.sh",
@@ -41,6 +42,7 @@
"@axe-core/playwright": "^4.10.2",
"@chromatic-com/storybook": "^4.1.0",
"@eslint/eslintrc": "^3",
"@lhci/cli": "^0.15.1",
"@playwright/test": "^1.55.0",
"@storybook/addon-a11y": "^9.1.2",
"@storybook/addon-docs": "^9.1.2",
@@ -64,7 +66,6 @@
"eslint-plugin-storybook": "^9.1.2",
"jest-axe": "^10.0.0",
"jsdom": "^26.1.0",
"lighthouse-ci": "^1.13.1",
"msw": "^2.10.5",
"playwright": "^1.54.2",
"postcss": "^8.5.6",