-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 968 Bytes
/
eslint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# ESLint is a tool for identifying and reporting on patterns
# found in ECMAScript/JavaScript code.
# More details at https://github.com/eslint/eslint
# and https://eslint.org
name: ESLint
on:
push:
branches: '*'
pull_request:
branches: ['main', 'dev']
jobs:
eslint:
name: Run eslint scanning
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install ESLint
run: |
npm install [email protected]
- name: Run ESLint
run: npm run lint:pipeline
continue-on-error: true
- name: Upload ESLint report
uses: actions/upload-artifact@v2
with:
name: eslint-report
path: eslint-report.html
- name: Display ESLint report link
run: echo "::set-output name=eslint-report::${{ steps.upload.outputs.artifact_path }}"