From 369d1aed92504ad31224ecc2c54cc7cd163761ad Mon Sep 17 00:00:00 2001 From: Yoann Chaudet Date: Tue, 23 Aug 2022 17:28:44 -0700 Subject: [PATCH] Add linter --- .github/workflows/check-linter.yml | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/check-linter.yml diff --git a/.github/workflows/check-linter.yml b/.github/workflows/check-linter.yml new file mode 100644 index 0000000..7e801a5 --- /dev/null +++ b/.github/workflows/check-linter.yml @@ -0,0 +1,34 @@ +name: Checking linter + +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: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Node.JS + uses: actions/setup-node@v3 + with: + node-version: 16.x + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Verify linter + run: npm run lint \ No newline at end of file