From b4fe9a784fd7db74256294ed28aa309d8a4289b9 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Wed, 26 Oct 2022 23:27:30 -0700 Subject: [PATCH] add github workflow to enforce linting of JS files (#348) --- .github/workflows/lint_js.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/lint_js.yml diff --git a/.github/workflows/lint_js.yml b/.github/workflows/lint_js.yml new file mode 100644 index 0000000..7303842 --- /dev/null +++ b/.github/workflows/lint_js.yml @@ -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