1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-17 16:45:31 -04:00

re-add Percy screenshotting action

This commit is contained in:
2021-06-04 18:08:34 -04:00
parent 64f2ffaeb1
commit bce45a1af5
9 changed files with 57 additions and 72 deletions

42
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,42 @@
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run linters
run: yarn lint
snapshot:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build preview
run: yarn build:hugo --environment=development --baseURL=/ --buildDrafts --buildFuture
- name: Percy snapshots
uses: percy/snapshot-action@v0.1.2
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}