Skip to content

Commit

Permalink
(ci): add a lint job so PRs will require passing lint (#378)
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 authored and swyxio committed Dec 18, 2019
1 parent c5df5ac commit 930feb9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/nodejs.yml
Expand Up @@ -3,6 +3,24 @@ name: Node CI
on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest

name: Lint on node 10.x and ubuntu-latest

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 930feb9

Please sign in to comment.