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:
@@ -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
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user