add lint workflow

This commit is contained in:
Matteo Pagliazzi 2019-10-19 16:25:04 +02:00
parent 102cca36e5
commit dd0634d777
2 changed files with 22 additions and 41 deletions

22
.github/workflows/lint.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Node CI
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install
run: |
npm ci
env:
CI: true
- run: npm run lint

View file

@ -1,41 +0,0 @@
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm ci
env:
CI: true
lint:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm run lint
run: |
npm run lint