| `LHCI_IMAGE`| The Docker image used to run Lighthouse CI (use [browser images](https://github.com/cypress-io/cypress-docker-images/tree/master/browsers) only). | `registry.hub.docker.com/cypress/browsers:latest` |
| `LHCI_VERSION`| Lighthouse CI version to run | `latest` |
| `REVIEW_ENABLED` | Set to `true` to enable Lighthouse tests on review environments (dynamic environments instantiated on development branches) | _none_ (disabled) |
| `image` / `LHCI_IMAGE` | The Docker image used to run Lighthouse CI (use [browser images](https://github.com/cypress-io/cypress-docker-images/tree/master/browsers) only). | `registry.hub.docker.com/cypress/browsers:latest` |
| `version` / `LHCI_VERSION` | Lighthouse CI version to run | `latest` |
| `review-enabled` / `REVIEW_ENABLED` | Set to `true` to enable Lighthouse tests on review environments (dynamic environments instantiated on development branches) | _none_ (disabled) |
All the rest of your Lighthouse CI configuration shall be defined either as [`LHCI_` environment variables](https://github.com/GoogleChrome/lighthouse-ci/blob/main/docs/configuration.md#environment-variables)
or in one of the supported [configuration files](https://github.com/GoogleChrome/lighthouse-ci/blob/main/docs/configuration.md#configuration-file),
@@ -65,13 +88,9 @@ The easiest solution is to declare all the analysed urls in the `$LHCI_RUN_OPTS`
```yaml
include:
-project:'to-be-continuous/lighthouse'
ref:'1.1.0'
file:'/templates/gitlab-ci-lighthouse.yml'
variables:
# pass 3 collect urls, using late %{environment_url} expansion
"description":"Continuously analyse your web apps and web pages performances and developer best practices with [Lighthouse CI](https://github.com/GoogleChrome/lighthouse-ci)",