1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 14:38:30 -04:00
Jake Jarvis 363b4edf1c
shift asset processing to webpack (#424)
also migrated SASS to latest syntax (via dart-sass) and vastly simplified light/dark theme logic
2021-06-19 17:19:01 -04:00

43 lines
949 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
- 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 site
run: yarn build
- name: Percy snapshots
uses: percy/snapshot-action@v0.1.2
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}