From 269505d3bf84c8d55f340361e0e3e6b4550e8dbe Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Thu, 4 Feb 2021 23:52:18 -0800 Subject: [PATCH] Run linter on push --- web/.github/workflows/linter.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 web/.github/workflows/linter.yml diff --git a/web/.github/workflows/linter.yml b/web/.github/workflows/linter.yml new file mode 100644 index 000000000..f81ac136d --- /dev/null +++ b/web/.github/workflows/linter.yml @@ -0,0 +1,21 @@ +name: linter + +# This action works with pull requests and pushes +on: + pull_request: + +jobs: + linter: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 9.8.0 + - name: Install + run: npm install + - name: Run ESLint on changed files + uses: tj-actions/eslint-changed-files@v4 + with: + extensions: 'ts,tsx,js,jsx' + extra-args: '--max-warnings=0' \ No newline at end of file