From b2a9252c45662f947981f4a5e771fc53179f60fc Mon Sep 17 00:00:00 2001 From: Victoria Nduka <122698422+nwanduka@users.noreply.github.com> Date: Tue, 25 Jun 2024 16:16:53 +0100 Subject: [PATCH] Update lighthouse.yml --- .github/workflows/lighthouse.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 512d4cbdb..760f33fe2 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -15,14 +15,17 @@ jobs: matrix: node-version: [20.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - run: npm install + - run: npm install -g http-server + - run: npm run build --if-present + - run: http-server -s & - name: Run Lighthouse run: | - npm install -g @lhci/cli@0.13.x - npm run build --if-present + npm install -g lhci/cli@0.13.x + sleep 90 lhci autorun