Skip to content
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

docs: run lighthouse tests #4231

Merged
merged 2 commits into from
Jul 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docs/documentation/onlinetest/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,28 @@ If you also use MinIO, make sure to configure how long the data will be stored.
/usr/bin/mc ilm rule add --expire-days 30 sitespeedio/sitespeedio
```

## Add Lighthouse to your test
You can enable the possibility to run Lighthouse tests by setting a configuration in the server configuration. Set useLighthouse to true.

```yaml
html:
# Show the Lighthouse box
useLighthouse: true
```

You will then have a checkbox in the extras section.

If your test runner uses NodeJS, then you need to manually install the Lighthouse plugin:
`npm install @sitespeed.io/plugin-lighthouse -g`

If you use Docker, then you need to update which container to use. In your configuration for your test runner change the container to use the +1 container:

```yaml
docker:
container: "sitespeedio/sitespeed.io:{% include version/sitespeed.io.txt %}-plus1"
```


## Configuration for production

Here's a checklist of things to consider when pushing to production:
Expand Down