From 85fe0084b897184f0bbd5148d22e6f4beab6e207 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Fri, 5 Jun 2020 08:53:15 -0400 Subject: [PATCH] fix lighthouse CI --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0d60c29..2d0c3742 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,11 +29,16 @@ jobs: with: fetch-depth: 1 lfs: false + - uses: actions/setup-node@v1 + with: + node-version: 12.x + - name: Install LHCI + run: npm install -g @lhci/cli - name: Audit deploy preview if: github.event_name == 'pull_request' continue-on-error: true run: | - npx @lhci/cli autorun --config=./.lighthouserc.json \ + lhci autorun --config=./.lighthouserc.json \ --collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/ \ --collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/notes/how-to-pull-request-fork-github/ \ --collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/notes/how-to-pull-request-fork-github/amp.html @@ -41,7 +46,7 @@ jobs: if: github.event_name == 'push' && github.ref == 'refs/heads/master' continue-on-error: true run: | - npx @lhci/cli autorun --config=./.lighthouserc.json \ + lhci autorun --config=./.lighthouserc.json \ --collect.url=https://jarv.is/ \ --collect.url=https://jarv.is/notes/how-to-pull-request-fork-github/ \ --collect.url=https://jarv.is/notes/how-to-pull-request-fork-github/amp.html