From bf1ed48d3a3d5e21cc416008208e1d37bba085f8 Mon Sep 17 00:00:00 2001 From: Tristan Helmich Date: Tue, 6 Oct 2020 14:15:59 +0000 Subject: [PATCH] Add workflow to trigger eslint on push/pr --- .github/workflows/eslint.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/eslint.yml diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml new file mode 100644 index 0000000..ec88055 --- /dev/null +++ b/.github/workflows/eslint.yml @@ -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