mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-27 13:05:48 -04:00
have CI run linters on every PR, bump eslint
This commit is contained in:
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@@ -12,14 +12,16 @@ jobs:
|
|||||||
# "[skip ci]" also causes Netlify to skip, so these are automatically in harmony
|
# "[skip ci]" also causes Netlify to skip, so these are automatically in harmony
|
||||||
# https://docs.netlify.com/site-deploys/manage-deploys/#skip-a-deploy
|
# https://docs.netlify.com/site-deploys/manage-deploys/#skip-a-deploy
|
||||||
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
||||||
|
timeout-minutes: 10
|
||||||
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 }}
|
||||||
steps:
|
steps:
|
||||||
- name: Wait for Netlify
|
- name: Wait for Netlify
|
||||||
|
# installing via `npx` each run takes a long time, but deploys always take longer
|
||||||
run: npx netlify-cli watch
|
run: npx netlify-cli watch
|
||||||
|
|
||||||
lighthouse:
|
audit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: deploy
|
needs: deploy
|
||||||
env:
|
env:
|
||||||
@@ -56,9 +58,9 @@ jobs:
|
|||||||
name: lhci-results
|
name: lhci-results
|
||||||
path: ./.lighthouseci
|
path: ./.lighthouseci
|
||||||
|
|
||||||
percy:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: "!contains(github.actor, '[bot]') && !contains(github.event.head_commit.message, '[skip ci]')"
|
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@@ -70,9 +72,9 @@ jobs:
|
|||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.14.x
|
go-version: 1.14.x
|
||||||
|
- name: Get yarn cache location
|
||||||
# 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
|
||||||
- name: Get yarn cache location
|
|
||||||
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
|
||||||
@@ -85,11 +87,13 @@ jobs:
|
|||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: yarn install --no-ignore-optional --frozen-lockfile
|
run: yarn install --no-ignore-optional --frozen-lockfile
|
||||||
- name: Lint
|
- name: Lint
|
||||||
continue-on-error: true
|
|
||||||
run: yarn lint
|
run: yarn lint
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build:preview
|
run: yarn build:preview
|
||||||
- name: Percy snapshots
|
- name: Percy snapshots
|
||||||
|
# don't run for all of dependabot's PRs -- I'm using the free plan...
|
||||||
|
if: "!contains(github.actor, '[bot]')"
|
||||||
uses: percy/snapshot-action@v0.1.0
|
uses: percy/snapshot-action@v0.1.0
|
||||||
|
timeout-minutes: 10
|
||||||
env:
|
env:
|
||||||
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
|
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^9.8.4",
|
"autoprefixer": "^9.8.4",
|
||||||
"cross-env": "^7.0.2",
|
"cross-env": "^7.0.2",
|
||||||
"eslint": "~7.3.1",
|
"eslint": "~7.4.0",
|
||||||
"eslint-config-prettier": "~6.11.0",
|
"eslint-config-prettier": "~6.11.0",
|
||||||
"eslint-plugin-prettier": "~3.1.4",
|
"eslint-plugin-prettier": "~3.1.4",
|
||||||
"gifsicle": "jakejarvis/gifsicle-bin#master",
|
"gifsicle": "jakejarvis/gifsicle-bin#master",
|
||||||
|
|||||||
@@ -1359,10 +1359,10 @@ eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.2.0:
|
|||||||
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e"
|
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e"
|
||||||
integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==
|
integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==
|
||||||
|
|
||||||
eslint@~7.3.1:
|
eslint@~7.4.0:
|
||||||
version "7.3.1"
|
version "7.4.0"
|
||||||
resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.3.1.tgz#76392bd7e44468d046149ba128d1566c59acbe19"
|
resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.4.0.tgz#4e35a2697e6c1972f9d6ef2b690ad319f80f206f"
|
||||||
integrity sha512-cQC/xj9bhWUcyi/RuMbRtC3I0eW8MH0jhRELSvpKYkWep3C6YZ2OkvcvJVUeO6gcunABmzptbXBuDoXsjHmfTA==
|
integrity sha512-gU+lxhlPHu45H3JkEGgYhWhkR9wLHHEXC9FbWFnTlEkbKyZKWgWRLgf61E8zWmBuI6g5xKBph9ltg3NtZMVF8g==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@babel/code-frame" "^7.0.0"
|
"@babel/code-frame" "^7.0.0"
|
||||||
ajv "^6.10.0"
|
ajv "^6.10.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user