diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index f76233a..8e8c980 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -20,11 +20,11 @@ jobs: - name: run Lighthouse CI for the Application run: | npm install -g @lhci/cli@0.14.x - 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/cli@0.14.x - 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 \ No newline at end of file diff --git a/compare-lhci-reports.js b/scripts/compare-lhci-reports.js similarity index 93% rename from compare-lhci-reports.js rename to scripts/compare-lhci-reports.js index e051d67..51b0c85 100644 --- a/compare-lhci-reports.js +++ b/scripts/compare-lhci-reports.js @@ -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);