1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 05:58:26 -04:00
Jake Jarvis 1e1bf0aa1d
Revert "add gitguardian action"
This reverts commit b7628fca4adfbf38d9a0f68d9b2637d0572f6948.
2021-08-08 09:58:06 -04:00

40 lines
881 B
YAML

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
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn lint
snapshot:
runs-on: ubuntu-latest
if: "github.actor == 'jakejarvis' && !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
cache: yarn
- run: yarn install --frozen-lockfile
- run: NODE_ENV=production yarn build
- run: yarn percy
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}