Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 74f0a8f

Browse files
committed
Check query compilation and formatting in qltest.yml
1 parent d5582f3 commit 74f0a8f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/qltest.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,7 @@ jobs:
3030
- name: Build Extractor
3131
run: env "PATH=$PATH:${{ github.workspace }}/codeql" ./create-extractor-pack.sh
3232
- name: Run QL tests
33-
run: codeql/codeql test run --check-databases --check-unused-labels --search-path "${{ github.workspace }}" --consistency-queries ql/consistency-queries ql/test
34-
33+
run: |
34+
codeql/codeql test run --check-databases --check-unused-labels --search-path "${{ github.workspace }}" --consistency-queries ql/consistency-queries ql/test
35+
find ql "(" -name "*.ql" -or -name "*.qll" ")" -print0 | xargs -0 codeql/codeql query format --check-only
36+
codeql/codeql query compile --check-only --threads=4 --warnings=error --search-path "${{ github.workspace }}" "ql/src" "ql/examples"

0 commit comments

Comments
 (0)