File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -30,19 +30,23 @@ jobs:
30
30
~/.cargo/git
31
31
ql/target
32
32
key : ${{ runner.os }}-qltest-cargo-${{ hashFiles('**/Cargo.lock') }}
33
- - name : Build Extractor
34
- run : cd ql; env "PATH=$PATH:`dirname ${CODEQL}`" ./create-extractor-pack.sh
35
- env :
36
- CODEQL : ${{ steps.find-codeql.outputs.codeql-path }}
33
+ - name : Build extractor
34
+ run : |
35
+ cd ql;
36
+ codeqlpath=$(dirname ${{ steps.find-codeql.outputs.codeql-path }});
37
+ env "PATH=$PATH:$codeqlpath" ./create-extractor-pack.sh
37
38
- name : Run QL tests
38
- run : " ${CODEQL}" test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path "${{ github.workspace }}"/ql --consistency-queries ql/ql/consistency-queries ql/ql/test
39
+ run : |
40
+ "${CODEQL}" test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path "${{ github.workspace }}"/ql --consistency-queries ql/ql/consistency-queries ql/ql/test
39
41
env :
40
42
CODEQL : ${{ steps.find-codeql.outputs.codeql-path }}
41
43
- name : Check QL formatting
42
- run : find ql/ql "(" -name "*.ql" -or -name "*.qll" ")" -print0 | xargs -0 "${CODEQL}" query format --check-only
44
+ run : |
45
+ find ql/ql "(" -name "*.ql" -or -name "*.qll" ")" -print0 | xargs -0 "${CODEQL}" query format --check-only
43
46
env :
44
47
CODEQL : ${{ steps.find-codeql.outputs.codeql-path }}
45
48
- name : Check QL compilation
46
- run : " ${CODEQL}" query compile --check-only --threads=4 --warnings=error --search-path "${{ github.workspace }}" "ql/ql/src" "ql/ql/examples"
49
+ run : |
50
+ "${CODEQL}" query compile --check-only --threads=4 --warnings=error --search-path "${{ github.workspace }}/ql/extractor-pack" "ql/ql/src" "ql/ql/examples"
47
51
env :
48
52
CODEQL : ${{ steps.find-codeql.outputs.codeql-path }}
You can’t perform that action at this time.
0 commit comments