From 930feb9bfebf713221fc645826d0aa4357456697 Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Wed, 18 Dec 2019 10:42:17 -0500 Subject: [PATCH] (ci): add a lint job so PRs will require passing lint (#378) - 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 --- .github/workflows/nodejs.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index ec4d3150b..354f2c66f 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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 }}