From 411fb3758f6974e4e261663e3d46f6c1b9311685 Mon Sep 17 00:00:00 2001 From: Johan Bisse Mattsson Date: Fri, 14 Jun 2024 13:20:20 +0200 Subject: [PATCH] Build and preview before running lighthouse ci action --- .github/workflows/lxl-web.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lxl-web.yml b/.github/workflows/lxl-web.yml index ab32dd329..2ba719f94 100644 --- a/.github/workflows/lxl-web.yml +++ b/.github/workflows/lxl-web.yml @@ -53,12 +53,12 @@ jobs: working-directory: ./lxljs - name: Install dependencies run: npm ci - - name: Build + - name: Build and preview env: API_URL: ${{ secrets.API_URL }} ID_URL: ${{ secrets.ID_URL }} - run: npm run build - - name: Lighthouse CI Action + run: npm run build && npm run preview + - name: Lighthouse CI Action uses: treosh/lighthouse-ci-action@11.4.0 with: urls: | @@ -67,4 +67,4 @@ jobs: http://localhost:4173/h08ndxddfg5v2pjf # budgetPath: ./budget.json # test performance budgets uploadArtifacts: true # save results as an action artifacts - temporaryPublicStorage: false # upload lighthouse report to the temporary storage \ No newline at end of file + temporaryPublicStorage: false # upload lighthouse report to the temporary storage