From dcad95e92ec1e9e559ae35c9826c340318ec19cf Mon Sep 17 00:00:00 2001 From: Daniel Sheeler Date: Mon, 9 Sep 2024 04:46:19 -0500 Subject: [PATCH] Create eslint.yml --- .github/workflows/eslint.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/eslint.yml diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml new file mode 100644 index 0000000..f85b847 --- /dev/null +++ b/.github/workflows/eslint.yml @@ -0,0 +1,28 @@ +name: ESLint + +on: + push: + branches: [ 'main' ] + pull_request: + branches: [ 'main' ] + +jobs: + eslint: + name: Run eslint scanning + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + # Required for private repositories by github/codeql-action/upload-sarif + actions: read + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install + run: | + npm install eslint@^8.0.0 + + - name: Lint + run: npx eslint . + continue-on-error: true