Skip to content

Commit a91814a

Browse files
committed
chore: update LHCI versions in documentation
BREAKING CHANGE: use Lighthouse v7 https://github.com/GoogleChrome/lighthouse/releases/tag/v7.0.0
1 parent 0638f08 commit a91814a

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v2
2121
- uses: actions/setup-node@v1
22-
- run: npm install && npm install -g @lhci/cli@0.6.x
22+
- run: npm install && npm install -g @lhci/cli@0.7.x
2323
- run: npm run build
2424
- run: lhci autorun
2525
```

docs/complex-setup.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fi
2424

2525
npm run deploy
2626

27-
npm install -g @lhci/cli@0.6.x
27+
npm install -g @lhci/cli@0.7.x
2828
lhci healthcheck --fatal
2929
lhci collect --url=http://localhost:9000/index.html
3030
lhci assert --preset="lighthouse:recommended"
@@ -121,7 +121,7 @@ Now that we have our environment ready, time to run Lighthouse CI. The `collect`
121121
122122
# Install Lighthouse CI
123123
# If you're already using node to manage your project, add it to your package.json `devDependencies` instead to skip this step.
124-
npm install -g @lhci/cli@0.6.x
124+
npm install -g @lhci/cli@0.7.x
125125

126126
# Run a healthcheck to make sure everything looks good before we run collection.
127127
lhci healthcheck --fatal

docs/getting-started.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
npm run build
9696
- name: run Lighthouse CI
9797
run: |
98-
npm install -g @lhci/cli@0.6.x
98+
npm install -g @lhci/cli@0.7.x
9999
lhci autorun
100100
```
101101
@@ -113,7 +113,7 @@ node_js: v12
113113
addons:
114114
chrome: stable
115115
before_install:
116-
- npm install -g @lhci/cli@0.6.x
116+
- npm install -g @lhci/cli@0.7.x
117117
script:
118118
- npm run build
119119
- lhci autorun
@@ -138,7 +138,7 @@ jobs:
138138
- checkout
139139
- run: npm install
140140
- run: npm run build
141-
- run: sudo npm install -g @lhci/cli@0.6.x
141+
- run: sudo npm install -g @lhci/cli@0.7.x
142142
- run: lhci autorun
143143
```
144144
@@ -173,7 +173,7 @@ lhci:
173173
script:
174174
- npm install
175175
- npm run build
176-
- npm install -g @lhci/cli@0.6.x
176+
- npm install -g @lhci/cli@0.7.x
177177
- lhci autorun --upload.target=temporary-public-storage --collect.settings.chromeFlags="--no-sandbox" || echo "LHCI failed!"
178178
```
179179

@@ -215,7 +215,7 @@ npm run build
215215
export CHROME_PATH=$(which google-chrome-stable)
216216
export LHCI_BUILD_CONTEXT__EXTERNAL_BUILD_URL="$BUILD_URL"
217217
218-
npm install -g @lhci/cli@0.6.x
218+
npm install -g @lhci/cli@0.7.x
219219
lhci autorun
220220
```
221221

@@ -243,8 +243,9 @@ module.exports = {
243243
```
244244

245245
**Notes**
246-
* `LHCI_BUILD_CONTEXT__CURRENT_BRANCH` doesn't pick up the right variables in cloudbuild so passing through `$BRANCH_NAME` will fix this.
247-
* `machineType` defines the machine you can pick. The bigger the machine the more stable the performance results will be (see [Lighthouse variability documentation](https://github.com/GoogleChrome/lighthouse/blob/master/docs/variability.md)). WARNING: Look through the [Cloudbuild machine pricing](https://cloud.google.com/cloud-build/pricing) before deciding on a machine type.
246+
247+
- `LHCI_BUILD_CONTEXT__CURRENT_BRANCH` doesn't pick up the right variables in cloudbuild so passing through `$BRANCH_NAME` will fix this.
248+
- `machineType` defines the machine you can pick. The bigger the machine the more stable the performance results will be (see [Lighthouse variability documentation](https://github.com/GoogleChrome/lighthouse/blob/master/docs/variability.md)). WARNING: Look through the [Cloudbuild machine pricing](https://cloud.google.com/cloud-build/pricing) before deciding on a machine type.
248249

249250
**cloudbuild.yml**
250251

@@ -263,7 +264,7 @@ steps:
263264
waitFor: ['build']
264265
name: cypress/browsers:node14.15.0-chrome86-ff82
265266
entrypoint: '/bin/sh'
266-
args: ['-c', 'npm install -g @lhci/cli@0.6.x && lhci autorun --failOnUploadFailure']
267+
args: ['-c', 'npm install -g @lhci/cli@0.7.x && lhci autorun --failOnUploadFailure']
267268
env:
268269
- 'LHCI_BUILD_CONTEXT__CURRENT_BRANCH=$BRANCH_NAME'
269270
@@ -369,7 +370,7 @@ jobs:
369370
npm run build
370371
- name: run Lighthouse CI
371372
run: |
372-
npm install -g @lhci/cli@0.6.x
373+
npm install -g @lhci/cli@0.7.x
373374
lhci autorun
374375
env:
375376
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
@@ -467,7 +468,7 @@ Once the server is set up, _on your local laptop or desktop_, make sure you can
467468
```bash
468469
$ curl https://your-lhci-server.example.com/version # Make sure you can connect to your server.
469470
0.x.x
470-
$ npm install -g @lhci/cli@0.6.x # Install the Lighthouse CI CLI.
471+
$ npm install -g @lhci/cli@0.7.x # Install the Lighthouse CI CLI.
471472
Installing...
472473
$ lhci wizard # Use the wizard to create a project.
473474
? Which wizard do you want to run? new-project

0 commit comments

Comments
 (0)