Skip to content

Commit 1a90241

Browse files
authored
Merge pull request #150 from github/update-lhci-reference
Update reference to lhci CLI & speed up lighthouse runs
2 parents 7d73f75 + f93880b commit 1a90241

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/lighthouse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5252

5353
- name: Run Lighthouse CI
54-
run: npx lhci autorun
54+
run: npx @lhci/cli@0.7.x autorun
5555
env:
5656
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5757
LHCI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

lighthouserc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"ci": {
33
"collect": {
44
"url": ["http://localhost:4000/?prefers-color-scheme=light", "http://localhost:4000/?prefers-color-scheme=dark"],
5-
"startServerCommand": "cd docs && bundle exec jekyll serve"
5+
"startServerCommand": "cd docs && bundle exec jekyll serve",
6+
"startServerReadyPattern": "Server running..."
67
},
78
"assert": {
89
"preset": "lighthouse:no-pwa",

0 commit comments

Comments
 (0)