Skip to content

Commit 1651fc5

Browse files
authored
Merge pull request #38 from Web-Dev-Collaborative/ArjunBEG-patch-1
Create eslint.yml
2 parents 19718e1 + 75b63e5 commit 1651fc5

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/eslint.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# ESLint is a tool for identifying and reporting on patterns
6+
# found in ECMAScript/JavaScript code.
7+
# More details at https://github.com/eslint/eslint
8+
# and https://eslint.org
9+
10+
name: ESLint
11+
12+
on:
13+
push:
14+
branches: [ "master" ]
15+
pull_request:
16+
# The branches below must be a subset of the branches above
17+
branches: [ "master" ]
18+
schedule:
19+
- cron: '44 3 * * 6'
20+
21+
jobs:
22+
eslint:
23+
name: Run eslint scanning
24+
runs-on: ubuntu-latest
25+
permissions:
26+
contents: read
27+
security-events: write
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v3
31+
32+
- name: Install ESLint
33+
run: |
34+
npm install [email protected]
35+
npm install @microsoft/[email protected]
36+
37+
- name: Run ESLint
38+
run: npx eslint .
39+
--config .eslintrc.js
40+
--ext .js,.jsx,.ts,.tsx
41+
--format @microsoft/eslint-formatter-sarif
42+
--output-file eslint-results.sarif
43+
continue-on-error: true
44+
45+
- name: Upload analysis results to GitHub
46+
uses: github/codeql-action/upload-sarif@v2
47+
with:
48+
sarif_file: eslint-results.sarif
49+
wait-for-processing: true

0 commit comments

Comments
 (0)