mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 17:30:28 -04:00
Update ci.yml
This commit is contained in:
parent
0b6b6f1a56
commit
1888189866
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@ -35,10 +35,12 @@ jobs:
|
|||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 14.x
|
node-version: 14.x
|
||||||
- name: Install Lighthouse CI
|
- name: Install LHCI
|
||||||
|
run: npm install -g @lhci/cli
|
||||||
|
- name: Check LHCI
|
||||||
run: |
|
run: |
|
||||||
npm install -g @lhci/cli
|
|
||||||
lhci --version
|
lhci --version
|
||||||
|
lhci healthcheck
|
||||||
- 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
|
||||||
@ -47,7 +49,7 @@ jobs:
|
|||||||
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.app/ \
|
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.app/ \
|
||||||
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.app/notes/netlify-analytics-review/ \
|
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.app/notes/netlify-analytics-review/ \
|
||||||
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.app/notes/how-to-pull-request-fork-github/amp.html
|
--collect.url=https://deploy-preview-${{ github.event.number }}--jakejarvis.netlify.app/notes/how-to-pull-request-fork-github/amp.html
|
||||||
- name: Audit jarv.is
|
- name: Audit production site
|
||||||
if: "github.event_name == 'push' && github.ref == 'refs/heads/main'"
|
if: "github.event_name == 'push' && github.ref == 'refs/heads/main'"
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
@ -72,13 +74,13 @@ jobs:
|
|||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 14.x
|
node-version: 14.x
|
||||||
- name: Get Yarn cache location
|
- name: Get Yarn cache path
|
||||||
# https://github.com/actions/cache/blob/master/examples.md#node---yarn
|
# https://github.com/actions/cache/blob/master/examples.md#node---yarn
|
||||||
# https://github.com/actions/cache/issues/60
|
# https://github.com/actions/cache/issues/60
|
||||||
id: yarn-cache
|
id: yarn-cache
|
||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.yarn-cache.outputs.dir }}
|
path: ${{ steps.yarn-cache.outputs.dir }}
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
@ -95,7 +97,7 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build:hugo --environment development --baseURL / --buildDrafts --buildFuture
|
run: yarn build:hugo --environment development --baseURL / --buildDrafts --buildFuture
|
||||||
- name: Percy snapshots
|
- name: Percy snapshots
|
||||||
# don't run for all of dependabot's PRs -- I'm using the free plan...
|
# uncomment to disable all bot PRs (eg. dependabot) -- I'm using the free plan...
|
||||||
# if: "!contains(github.actor, '[bot]')"
|
# if: "!contains(github.actor, '[bot]')"
|
||||||
uses: percy/snapshot-action@v0.1.0
|
uses: percy/snapshot-action@v0.1.0
|
||||||
env:
|
env:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user