mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-09-16 18:42:03 +00:00
ci(lighthouse): stop lhci reading the form factor as a CLI flag
lhci treats every LHCI_* environment variable as a command-line option, so LHCI_PRESET=mobile reached `lhci assert` as an invalid --preset and failed both jobs after the audits had run. Use LIGHTHOUSE_FORM_FACTOR instead. Also upload the reports: upload-artifact v4+ skips dot-directories such as .lighthouseci unless include-hidden-files is set.
This commit is contained in:
@@ -45,7 +45,7 @@ The test suite is split by responsibility so a failure points to the correct lay
|
||||
- `lighthouserc.cjs` audits the public pages with Lighthouse CI (`npm run test:lighthouse`, which
|
||||
builds and serves the Node output). PRs fail if Performance, Accessibility, Best Practices or SEO
|
||||
drops below 90, or if LCP, TBT, CLS, script, stylesheet or total transfer size exceeds its budget.
|
||||
CI runs it with both the mobile and desktop profiles (`LHCI_PRESET=desktop`).
|
||||
CI runs it with both the mobile and desktop profiles (`LIGHTHOUSE_FORM_FACTOR=desktop`).
|
||||
- `tests/bdd/features/performance.feature` holds time budgets for signed-in pages Lighthouse can't
|
||||
reach: opening a Pokédex and switching between it and the Pokédex list.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user