Run linter on push
This commit is contained in:
parent
75c1134cad
commit
269505d3bf
21
web/.github/workflows/linter.yml
vendored
Normal file
21
web/.github/workflows/linter.yml
vendored
Normal file
@ -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'
|
Loading…
x
Reference in New Issue
Block a user