From f9b354f74cd4f7774bc57cb7d34826aad610c3a6 Mon Sep 17 00:00:00 2001 From: Yash Khare Date: Mon, 16 Dec 2024 15:12:14 +0530 Subject: [PATCH] check for best practices Signed-off-by: Yash Khare --- .github/workflows/lighthouse.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index d27a9498..ba1b5fc9 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -16,10 +16,8 @@ jobs: - name: Install dependencies run: | npm install - - name: Audit URLs using Lighthouse - uses: treosh/lighthouse-ci-action@v7 - with: - urls: http://localhost:3000 - budgetPath: ./budget.json - uploadArtifacts: true # save results as an action artifacts - temporaryPublicStorage: true # upload lighthouse audits to google temporary storage \ No newline at end of file + npm run build + - name: run Lighthouse CI + run: | + npm install -g @lhci/cli@0.14.x + lhci autorun --upload.target=temporary-public-storage || echo "LHCI failed!" \ No newline at end of file