mirror of
https://github.com/langgenius/dify.git
synced 2026-02-09 15:10:13 -05:00
ci: eslint annotation (#31056)
This commit is contained in:
13
.github/workflows/style.yml
vendored
13
.github/workflows/style.yml
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user