Skip to content

Commit

Permalink
(ci): add a lint job so PRs will require passing lint
Browse files Browse the repository at this point in the history
- a few recent PRs got in without passing lint, this breaks all future
  PRs/branches/commits because pre-commit will fail when it runs lint
  • Loading branch information
agilgur5 committed Dec 17, 2019
1 parent c5df5ac commit c734f42
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ name: Node CI
on: [push, pull_request]

jobs:
lint:
name: Lint

steps:
- uses: actions/checkout@v1
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x

- name: Install deps and build
run: yarn install --frozen-lockfile

- name: Lint codebase
run: yarn lint

test:
runs-on: ${{ matrix.os }}

Expand Down

0 comments on commit c734f42

Please sign in to comment.