Skip to content

Commit

Permalink
use single config file and move script inside folder
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 bad8f57 commit 5fb69c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 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
lhci autorun --config=lighthouserc.json --collect.url="http://localhost:3000" --collect.startServerCommand="npm run start"
- name: run Lighthouse CI for Keploy.io Deployed Website
run: |
npm install -g @lhci/[email protected]
lhci autorun --config=lighthouserckeploy.json
lhci autorun --config=lighthouserc.json --collect.url="https://www.keploy.io"
- name: Compare Lighthouse Reports
run: |
node compare-lhci-reports.js
4 changes: 2 additions & 2 deletions compare-lhci-reports.js → scripts/compare-lhci-reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ function loadReport(path) {
return JSON.parse(data);
}

const appReportDirectory = './lhci-reports/app';
const keployReportDirectory = './lhci-reports/keploy.io';
const appReportDirectory = '../lhci-reports/app';
const keployReportDirectory = '../lhci-reports/keploy.io';

const appReportPath = findReportFile(appReportDirectory);
const keployReportPath = findReportFile(keployReportDirectory);
Expand Down

0 comments on commit 5fb69c4

Please sign in to comment.