Skip to content

Commit

Permalink
chore: run lint once for CI (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni authored Nov 23, 2021
1 parent 88d3670 commit e95cd82
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 6 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,30 @@ on:
types: [opened, synchronize, reopened]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v2

- name: ⎔ Setup node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
cache: npm

- name: 📥 Download deps
run: npm ci
env:
HUSKY_SKIP_INSTALL: true

- name: 🧪 Run lint
run: npm run lint

build:
# ignore all-contributors PRs
if: ${{ !contains(github.head_ref, 'all-contributors') }}
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
node:
Expand Down Expand Up @@ -46,9 +66,6 @@ jobs:
env:
HUSKY_SKIP_INSTALL: true

- name: 🧪 Run lint
run: npm run lint

- name: 🏗 Build
run: npm run build
env:
Expand Down
23 changes: 20 additions & 3 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,30 @@ on:
- '!all-contributors/**'

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v2

- name: ⎔ Setup node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
cache: npm

- name: 📥 Download deps
run: npm ci
env:
HUSKY_SKIP_INSTALL: true

- name: 🧪 Run lint
run: npm run lint

build:
# ignore all-contributors PRs
if: ${{ !contains(github.head_ref, 'all-contributors') }}
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
node:
Expand Down Expand Up @@ -45,9 +65,6 @@ jobs:
env:
HUSKY_SKIP_INSTALL: true

- name: 🧪 Run lint
run: npm run lint

- name: 🏗 Build
run: npm run build
env:
Expand Down

0 comments on commit e95cd82

Please sign in to comment.