Current Behavior
The current Lighthouse CI configuration (lighthouserc.js) is set to use only the "desktop" preset.
This means performance, accessibility, and best practices are evaluated only under desktop conditions, and mobile performance is not tested in CI.
Desired Behavior
Lighthouse CI should run audits for both:
- Desktop (existing)
- Mobile (new)
This ensures that performance and accessibility are validated under real-world mobile conditions, which are critical for end users.
Implementation
-
Update lighthouserc.js to include a mobile configuration .
-
Configure Lighthouse CI to run audits for both desktop and mobile presets (either sequentially or as separate runs).
-
Ensure CI workflow supports both configurations without conflicts.
-
Adjust thresholds if necessary, since mobile scores may differ from desktop.
Acceptance Tests
- Lighthouse CI runs successfully for both:
- Desktop preset
- Mobile preset
- CI pipeline passes without errors.
- Reports include mobile performance metrics.
- No regression in existing desktop audit results.
Checklist
Current Behavior
The current Lighthouse CI configuration (lighthouserc.js) is set to use only the "desktop" preset.
This means performance, accessibility, and best practices are evaluated only under desktop conditions, and mobile performance is not tested in CI.
Desired Behavior
Lighthouse CI should run audits for both:
This ensures that performance and accessibility are validated under real-world mobile conditions, which are critical for end users.
Implementation
Update lighthouserc.js to include a mobile configuration .
Configure Lighthouse CI to run audits for both desktop and mobile presets (either sequentially or as separate runs).
Ensure CI workflow supports both configurations without conflicts.
Adjust thresholds if necessary, since mobile scores may differ from desktop.
Acceptance Tests
Checklist