Skip to content

Commit

Permalink
ci(lighthouse): fix lighthouse config (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
pure-js authored Sep 26, 2023
1 parent c1fdd04 commit 23e94b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Lighthouse CI

on: [push]
on:
push:

env:
VITE_GROWTH_BOOK_KEY: ${{ secrets.VITE_GROWTH_BOOK_KEY }}
Expand Down
11 changes: 6 additions & 5 deletions lighthouserc.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
ci:
collect:
numberOfRuns: 5
startServerCommand: pnpm run preview
url:
[
'http://localhost/local-microblogging-client/',
'http://localhost/local-microblogging-client/posts/1',
'http://localhost/local-microblogging-client/posts/1/edit',
'http://localhost/local-microblogging-client/posts/new',
'http://localhost:4173/local-microblogging-client/',
'http://localhost:4173/local-microblogging-client/posts/1',
'http://localhost:4173/local-microblogging-client/posts/1/edit',
'http://localhost:4173/local-microblogging-client/posts/new',
]
staticDistDir: './dist'
# staticDistDir: './dist'
isSinglePageApplication: true
assert:
assertions:
Expand Down

0 comments on commit 23e94b8

Please sign in to comment.