Skip to content

Commit

Permalink
make config file common and make routes visible
Browse files Browse the repository at this point in the history
Signed-off-by: Yash Khare <[email protected]>
  • Loading branch information
khareyash05 committed Dec 16, 2024
1 parent 5fb69c4 commit 0c0fed7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
- name: run Lighthouse CI for the Application
run: |
npm install -g @lhci/[email protected]
lhci autorun --config=lighthouserc.json --collect.url="http://localhost:3000" --collect.startServerCommand="npm run start"
lhci autorun --config=lighthouserc.json --collect.url="http://localhost:3000" --collect.startServerCommand="npm run start" --upload.outputDir="./lhci-reports/app"
- name: run Lighthouse CI for Keploy.io Deployed Website
run: |
npm install -g @lhci/[email protected]
lhci autorun --config=lighthouserc.json --collect.url="https://www.keploy.io"
lhci autorun --config=lighthouserc.json --collect.url="https://www.keploy.io" --upload.outputDir="./lhci-reports/keploy.io"
- name: Compare Lighthouse Reports
run: |
node compare-lhci-reports.js
node scripts/compare-lhci-reports.js
7 changes: 1 addition & 6 deletions lighthouserc.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{
"ci": {
"upload": {
"target": "filesystem",
"outputDir": "./lhci-reports/app"
"target": "filesystem"
},
"collect": {
"startServerCommand": "npm run start",
"url": [
"http://localhost:3000/"
],
"numberOfRuns": 10
},
"assert": {
Expand Down

0 comments on commit 0c0fed7

Please sign in to comment.