From 64fde80d5128b17725918b50c18cfbeffdb263eb Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Tue, 23 Jun 2020 02:21:08 -0400 Subject: [PATCH] Use circleci redirector 0.2.0, check with lighthouse 2.0.0, upload v2 (#208) --- .github/workflows/artifact.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/artifact.yml b/.github/workflows/artifact.yml index b8f6f5bf2..480a3d9b0 100644 --- a/.github/workflows/artifact.yml +++ b/.github/workflows/artifact.yml @@ -4,8 +4,20 @@ jobs: runs-on: ubuntu-latest name: Run CircleCI artifacts redirector steps: - - name: GitHub Action step - uses: larsoner/circleci-artifacts-redirector-action@master + - name: Create URL for CircleCI artifact + id: redirect + uses: larsoner/circleci-artifacts-redirector-action@0.2.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} artifact-path: 0/html/index.html + - name: Run Lighthouse on Site + id: lighthouse + uses: foo-software/lighthouse-check-action@v2.0.0 + with: + urls: ${{ steps.redirect.outputs.url }} + outputDirectory: /tmp/lighthouse + - name: Upload Lighthouse Reports + uses: actions/upload-artifact@v2 + with: + name: Lighthouse Report ${{ github.run_number }} + path: /tmp/lighthouse