ci: eslint annotation (#31056)

This commit is contained in:
Stephen Zhou
2026-01-15 21:49:46 +08:00
committed by GitHub
parent 2b021e8752
commit 1a2fce7055
2 changed files with 16 additions and 4 deletions

View File

@@ -65,6 +65,9 @@ jobs:
defaults:
run:
working-directory: ./web
permissions:
checks: write
pull-requests: read
steps:
- name: Checkout code
@@ -103,7 +106,15 @@ jobs:
if: steps.changed-files.outputs.any_changed == 'true'
working-directory: ./web
run: |
pnpm run lint
pnpm run lint:report
continue-on-error: true
- name: Annotate Code
if: steps.changed-files.outputs.any_changed == 'true'
uses: DerLev/eslint-annotations@51347b3a0abfb503fc8734d5ae31c4b151297fae
with:
eslint-report: web/eslint_report.json
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Web type check
if: steps.changed-files.outputs.any_changed == 'true'