From 4eadc891b594e084ea467a3973bd2c0bd4c2b125 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Fri, 16 Sep 2022 21:57:04 -0500 Subject: [PATCH] Add Actions workflow to verify lint status --- .github/workflows/lint.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..4189323 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,35 @@ +name: Lint code + +on: + push: + branches: + - main + pull_request: + +permissions: + contents: read + +# This allows a subsequently queued workflow run to interrupt previous runs +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + +jobs: + lint: + runs-on: ubuntu-latest + timeout-minutes: 2 + steps: + - name: Check out repo + uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version-file: 16.x + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Run linter + run: npm run lint:check