1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 17:30:28 -04:00

upload LHCI results as artifacts

This commit is contained in:
Jake Jarvis 2020-03-28 23:46:59 -04:00
parent d7f14119d4
commit 1de471fdab
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39

View File

@ -27,7 +27,7 @@ jobs:
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 12.x node-version: 12.x
- name: Install utilities - name: Install LHCI
run: npm install -g @lhci/cli run: npm install -g @lhci/cli
- name: Audit deploy preview - name: Audit deploy preview
if: github.event_name == 'pull_request' 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 --collect.url=https://jarv.is/notes/how-to-pull-request-fork-github/amp.html
env: env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} 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