-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (37 loc) · 1.01 KB
/
lint.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
42
43
44
45
name: Lint project files
on:
pull_request:
types:
- ready_for_review
- opened
- reopened
- synchronize
jobs:
eslint:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
id-token: write
checks: write
steps:
- uses: actions/checkout@v4
- name: Setup node and install deps
uses: ./.github/workflows/actions/node-setup
- name: Build project
run: pnpm build
- name: Save Code Linting Report JSON
run: pnpm lint:report
continue-on-error: true
- uses: actions/upload-artifact@v4
continue-on-error: true
with:
name: eslint-report.log.json
path: eslint-report.log.json
- name: Annotate Code Linting Results
uses: ataylorme/eslint-annotate-action@v2
continue-on-error: true
with:
repo-token: "${{ github.token }}"
report-json: "eslint-report.log.json"
markdown-report-on-step-summary: true