From 1de471fdabb2a2713aa5234c15ae58c14e56feb6 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Sat, 28 Mar 2020 23:46:59 -0400 Subject: [PATCH] upload LHCI results as artifacts --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d958dcd..8f291011 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12.x - - name: Install utilities + - name: Install LHCI run: npm install -g @lhci/cli - name: Audit deploy preview if: github.event_name == 'pull_request' @@ -51,3 +51,9 @@ jobs: --collect.url=https://jarv.is/notes/how-to-pull-request-fork-github/amp.html env: LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} + - name: Upload results as artifact + if: success() + uses: actions/upload-artifact@v1 + with: + name: lhci-results + path: ./.lighthouseci