From ec2ed28bb9ce80d36d84c7fc66dab395ce747736 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Tue, 7 Jul 2020 10:46:59 -0400 Subject: [PATCH] test private lighthouse CI server public temporary server was kinda flaky --- .github/workflows/ci.yml | 5 +++-- .lighthouserc.json | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a08b68cb..7b6b6f4e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,7 @@ jobs: runs-on: ubuntu-latest needs: deploy env: + LHCI_TOKEN: ${{ secrets.LHCI_TOKEN }} LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} steps: - uses: actions/checkout@v2 @@ -42,7 +43,7 @@ jobs: if: "github.event_name == 'pull_request'" continue-on-error: true run: | - lhci autorun --config=./.lighthouserc.json \ + lhci autorun \ --collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/ \ --collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/notes/netlify-analytics-review/ \ --collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/notes/how-to-pull-request-fork-github/amp.html @@ -50,7 +51,7 @@ jobs: if: "github.event_name == 'push' && github.ref == 'refs/heads/main'" continue-on-error: true run: | - lhci autorun --config=./.lighthouserc.json \ + lhci autorun \ --collect.url=https://jarv.is/ \ --collect.url=https://jarv.is/notes/netlify-analytics-review/ \ --collect.url=https://jarv.is/notes/how-to-pull-request-fork-github/amp.html diff --git a/.lighthouserc.json b/.lighthouserc.json index 92f813c0..79e3bafc 100644 --- a/.lighthouserc.json +++ b/.lighthouserc.json @@ -22,7 +22,8 @@ } }, "upload": { - "target": "temporary-public-storage" + "target": "lhci", + "serverBaseUrl": "https://powerful-falls-79142.herokuapp.com" } } }