From 0c0fed75e70913f93f720b24bac70fa485ccdf52 Mon Sep 17 00:00:00 2001 From: Yash Khare Date: Mon, 16 Dec 2024 22:25:49 +0530 Subject: [PATCH] make config file common and make routes visible Signed-off-by: Yash Khare --- .github/workflows/lighthouse.yml | 6 +++--- lighthouserc.json | 7 +------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 8e8c980..b1c3692 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 --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/cli@0.14.x - 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 \ No newline at end of file + node scripts/compare-lhci-reports.js \ No newline at end of file diff --git a/lighthouserc.json b/lighthouserc.json index 4ce3b4e..fb2303c 100644 --- a/lighthouserc.json +++ b/lighthouserc.json @@ -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": {