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:
parent
d7f14119d4
commit
1de471fdab
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user