Skip to content
lighthouse
Menu

Feature

Uploads from any CI pipeline

Run npx @lhci/cli autorun with three secrets and each pull request uploads its report.

A repo’s lighthouserc.js sets upload.target to lhci, the server URL, the Build token and upload.basicAuth. The CI step runs npx @lhci/cli autorun with LHCI_BUILD_TOKEN, LHCI_BASIC_AUTH_USERNAME and LHCI_BASIC_AUTH_PASSWORD.

With GITHUB_TOKEN set on the upload step, Lighthouse CI posts its score and a comparison link on the pull request instead of only in the Actions log.