Add workflow to trigger eslint on push/pr

This commit is contained in:
Tristan Helmich 2020-10-06 14:15:59 +00:00
parent b1299c9749
commit bf1ed48d3a

13
.github/workflows/eslint.yml vendored Normal file
View 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