treosh / lighthouse-ci-action

Audit URLs using Lighthouse and test performance with Lighthouse CI.
MIT License
1.17k stars 82 forks source link

Return JSON, not HTML #27

Closed irfan-maulana-tkp closed 4 years ago

irfan-maulana-tkp commented 4 years ago

Is there any sample using this action to return JSON response and not HTML file?

alekseykulikov commented 4 years ago

Yes, by default LHCI generates .json and .html files, for example:

ls .lighthouseci
lhr-1583503541026.html  
lhr-1583503541026.json  
lhr-1583503555882.html  
lhr-1583503555882.json

If you upload results using as an artifact or as a gist, it's a JSON file.