mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-27 10:25:50 -04:00
fix lighthouse CI
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -29,11 +29,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
lfs: false
|
lfs: false
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 12.x
|
||||||
|
- name: Install LHCI
|
||||||
|
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'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
npx @lhci/cli autorun --config=./.lighthouserc.json \
|
lhci autorun --config=./.lighthouserc.json \
|
||||||
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/ \
|
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/ \
|
||||||
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/notes/how-to-pull-request-fork-github/ \
|
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/notes/how-to-pull-request-fork-github/ \
|
||||||
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/notes/how-to-pull-request-fork-github/amp.html
|
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.com/notes/how-to-pull-request-fork-github/amp.html
|
||||||
@@ -41,7 +46,7 @@ jobs:
|
|||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
npx @lhci/cli autorun --config=./.lighthouserc.json \
|
lhci autorun --config=./.lighthouserc.json \
|
||||||
--collect.url=https://jarv.is/ \
|
--collect.url=https://jarv.is/ \
|
||||||
--collect.url=https://jarv.is/notes/how-to-pull-request-fork-github/ \
|
--collect.url=https://jarv.is/notes/how-to-pull-request-fork-github/ \
|
||||||
--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
|
||||||
|
|||||||
Reference in New Issue
Block a user