Skip to content

Commit

Permalink
ci: added eslint pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
rH4rtinger committed Sep 16, 2024
1 parent 7861df1 commit 9f88f77
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: ESLint

on:
pull_request:

jobs:
eslint:
name: Run eslint scanning
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install ESLint
run: npm install @microsoft/[email protected] --save-dev

- name: Run ESLint
run: npm run lint -- --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif
continue-on-error: true

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: eslint-results.sarif
wait-for-processing: true

0 comments on commit 9f88f77

Please sign in to comment.