ci: add Lighthouse PWA + mobile a11y gate

Lighthouse CI runs on every PR against the build, with the mobile
emulation preset and these minimum scores:
  - Performance >= 0.9
  - Accessibility >= 0.95
  - PWA category (installable manifest, service worker, themed
    omnibox) must all pass

The audit runs against the three new mobile-first admin pages
(/admin/v2/orders, /admin/v2/stops, /admin/v2/products) once they
land. Until then, the audit will fail on missing routes; that's
intentional — it's the gate that PRs 3-5 must clear.

Note: package-lock.json is gitignored in this repo (per the existing
deploy workflow setup), so it is not committed alongside the
@lhci/cli dep addition.
This commit is contained in:
Tyler
2026-06-17 14:27:09 -06:00
parent 837f7f83cb
commit 3f2c99fbb2
3 changed files with 61 additions and 0 deletions
+1
View File
@@ -62,6 +62,7 @@
"zod": "^4.4.3"
},
"devDependencies": {
"@lhci/cli": "^0.15.1",
"@playwright/test": "^1.60.0",
"@tailwindcss/postcss": "^4",
"@types/node": "^20",