1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Lint generate-code-scanning-query-list.ts separately (#50031)

This commit is contained in:
Peter Bengtsson
2024-04-09 15:53:43 -04:00
committed by GitHub
parent 08611da690
commit a4bf16540a
6 changed files with 24 additions and 7 deletions

View File

@@ -71,6 +71,20 @@ jobs:
with:
token: ${{ secrets.DOCS_BOT_PAT_WORKFLOW }}
- name: Lint the code (eslint)
if: ${{ github.event_name == 'pull_request' }}
env:
PATH: '$PATH:${{ github.workspace }}/node_modules/.bin'
run: |
eslint --no-ignore src/code-scanning/scripts/generate-code-scanning-query-list.ts
- name: Lint the code (tsc)
if: ${{ github.event_name == 'pull_request' }}
env:
PATH: '$PATH:${{ github.workspace }}/node_modules/.bin'
run: |
tsc --noEmit --project src/code-scanning/scripts/tsconfig.json
- name: Build code scanning query list
run: |
for lang in "cpp" "csharp" "go" "java" "javascript" "python" "ruby" "swift"; do