From d4471b7fff1d3adf708fa108e3f5350a115d673f Mon Sep 17 00:00:00 2001 From: Yash Khare Date: Tue, 17 Dec 2024 09:21:37 +0530 Subject: [PATCH] introducing main Signed-off-by: Yash Khare --- .github/workflows/lighthouse.yml | 3 ++- compare-lhci-reports.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 7ad1d4b..c7b53ad 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -23,8 +23,9 @@ jobs: 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: | + git checkout main npm install -g @lhci/cli@0.14.x - lhci autorun --config=lighthouserc.json --collect.url="https://www.keploy.io" --upload.outputDir="./lhci-reports/keploy.io" + lhci autorun --config=lighthouserc.json --collect.url="http://localhost:3000" --collect.startServerCommand="npm run start" --upload.outputDir="./lhci-reports/main" - name: Compare Lighthouse Reports run: | node compare-lhci-reports.js \ No newline at end of file diff --git a/compare-lhci-reports.js b/compare-lhci-reports.js index e051d67..8a40d74 100644 --- a/compare-lhci-reports.js +++ b/compare-lhci-reports.js @@ -25,7 +25,7 @@ function loadReport(path) { } const appReportDirectory = './lhci-reports/app'; -const keployReportDirectory = './lhci-reports/keploy.io'; +const keployReportDirectory = './lhci-reports/main'; const appReportPath = findReportFile(appReportDirectory); const keployReportPath = findReportFile(keployReportDirectory);