-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to generate both desktop and mobile reports? #79
Comments
Hi @abcfy2, you may set
jobs:
lighthouse:
steps:
- uses: treosh/lighthouse-ci-action@v7
with:
configPath: '.github/configs/lighthouserc.yml'
ci:
collect:
settings:
emulatedFormFactor: desktop Docs on settings: https://github.com/GoogleChrome/lighthouse/blob/575e29b8b6634bfb280bc820efea6795f3dd9017/types/externs.d.ts#L164-L165 |
Did you mean I have to create 2 steps with different |
If you need reports for both form-factors, then yes, two separate steps with two separate configs. Lighthouse itself allows only one value to be set in the config. |
Oh I know, thank you. |
While this feature still not supported GoogleChrome/lighthouse-ci#138 properly, This action seems like a good place to handle this. |
It seems that the default report is only for mobile. How to generate both desktop and mobile report ? Just like page speed insights https://developers.google.com/speed/pagespeed/insights/?
The text was updated successfully, but these errors were encountered: