add github workflow to enforce linting of JS files

This commit is contained in:
Kevin Gibbons 2022-12-02 18:57:42 -08:00
parent 9c535d27e6
commit d01803f605
1 changed files with 16 additions and 0 deletions

16
.github/workflows/lint_js.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: lint_js
on: [pull_request, push]
jobs:
check:
name: lint_js
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: npm ci
- run: npm run lint
- run: npm run format -- --check