Add workflow to trigger eslint on push/pr
This commit is contained in:
parent
b1299c9749
commit
bf1ed48d3a
13
.github/workflows/eslint.yml
vendored
Normal file
13
.github/workflows/eslint.yml
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
name: Linter
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
eslint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2-beta
|
||||
with:
|
||||
node-version: '12'
|
||||
- run: npm ci
|
||||
- run: ./node_modules/.bin/eslint -c ./.eslintrc.json -f compact *.js
|
||||
Loading…
x
Reference in New Issue
Block a user