1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-27 13:05:48 -04:00

Update ci.yml

[skip ci]
This commit is contained in:
2020-04-29 11:15:01 -04:00
parent d9e69fcf75
commit 4515bfbfd5

View File

@@ -9,7 +9,7 @@ on:
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')" if: (!contains(github.event.head_commit.message, '[skip ci]'))
env: env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
@@ -19,7 +19,7 @@ jobs:
lighthouse: lighthouse:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')" if: (!contains(github.event.head_commit.message, '[skip ci]'))
needs: deploy needs: deploy
env: env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
@@ -54,7 +54,9 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')" if: (!contains(github.actor, '[bot]')) || (!contains(github.event.head_commit.message, '[skip ci]'))
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
@@ -78,27 +80,14 @@ jobs:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-yarn- ${{ runner.os }}-yarn-
- run: yarn install --no-ignore-optional --frozen-lockfile - name: Install
- run: yarn build:preview run: yarn install --no-ignore-optional --frozen-lockfile
- run: yarn lint - name: Build preview
run: yarn build:preview
- name: Lint
run: yarn lint
continue-on-error: true continue-on-error: true
- name: Include .percy.yml in artifact - name: Percy snapshots
run: cp .percy.yml public/ uses: percy/snapshot-action@v0.1.0
- uses: actions/upload-artifact@v1
with: with:
name: public flags: --config ./.percy.yml
path: './public'
percy:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
needs: build
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
steps:
- uses: actions/download-artifact@v1
with:
name: public
- uses: percy/snapshot-action@v0.1.0
with:
flags: --config public/.percy.yml