fix(lighthouse): set LHCI_CHROME_PATH and lower thresholds per CTO feedback

- Set LHCI_CHROME_PATH to Playwright chromium binary path so LHCI
  healthcheck can find Chrome
- Lower thresholds: performance=0.5, accessibility=0.7 (error), seo=0.7
- SEO threshold was missing, now added
This commit is contained in:
Stockboy Steve
2026-03-30 19:23:57 +00:00
committed by Barcode Betty
parent 386ce16447
commit dc15a72144
2 changed files with 6 additions and 3 deletions
+2
View File
@@ -76,6 +76,8 @@ jobs:
npm install -g playwright
npx playwright install chromium
- name: Run Lighthouse CI
env:
LHCI_CHROME_PATH: /home/runner/.cache/ms-playwright/chromium-1208/chrome-linux/chrome
run: |
npm install -g @lhci/cli
lhci autorun
+4 -3
View File
@@ -8,9 +8,10 @@
"assert": {
"preset": "lighthouse:no-pwa",
"assertions": {
"categories:performance": ["warn", { "minScore": 0.7 }],
"categories:accessibility": ["error", { "minScore": 0.9 }],
"categories:best-practices": ["warn", { "minScore": 0.8 }]
"categories:performance": ["warn", { "minScore": 0.5 }],
"categories:accessibility": ["error", { "minScore": 0.7 }],
"categories:best-practices": ["warn", { "minScore": 0.8 }],
"categories:seo": ["warn", { "minScore": 0.7 }]
}
},
"upload": {