Skip to content

Commit

Permalink
make script inside
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 f4f81c4 commit 648a010
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ jobs:
ls
pwd
echo "check 2"
node scripts/compare-lhci-reports.js
cd ..
pwd
node compare-lhci-reports.js
- name: Upload Lighthouse Reports
uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions scripts/compare-lhci-reports.js → compare-lhci-reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ function loadReport(path) {
return JSON.parse(data);
}

const appReportPath = '../lhci-reports/app/latest-run/report.json';
const keployReportPath = '../lhci-reports/keploy.io/latest-run/report.json';
const appReportPath = './lhci-reports/app/latest-run/report.json';
const keployReportPath = './lhci-reports/keploy.io/latest-run/report.json';

const appReport = loadReport(appReportPath);
const keployReport = loadReport(keployReportPath);
Expand Down

0 comments on commit 648a010

Please sign in to comment.