From 4b28e2e269db23d3497f83195397d617ec8ae53d Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Wed, 2 Aug 2023 17:49:53 +1000 Subject: [PATCH] chore(CI): rework lighthouse action (#1570) --- .github/workflows/lighthouse.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 26ec2ced..67c2b49f 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -13,15 +13,15 @@ jobs: URL: ${{ github.event.deployment_status.environment_url }} steps: - - uses: actions/checkout@v3 + - name: Setup repo + uses: actions/checkout@v3 - - name: Install Node.js - uses: actions/setup-node@v3 - - - name: Install Lighthouse CI - run: npm install -g @lhci/cli@0.9.x - - - name: Run Lighthouse - run: lhci autorun --collect.url="$URL" --collect.url="$URL/docs/introduction" --upload.target="temporary-public-storage" + - name: Audit URLs using Lighthouse + uses: treosh/lighthouse-ci-action@v10 env: LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} + with: + temporaryPublicStorage: true + urls: | + $URL + $URL/docs/introduction