File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 17
17
CODEQL_THREADS : 4 # TODO: remove this once it's set by the CLI
18
18
strategy :
19
19
matrix :
20
- repo :
20
+ repo :
21
21
- github/codeql
22
22
- github/codeql-go
23
23
runs-on : ubuntu-latest
35
35
~/.cargo/registry
36
36
~/.cargo/git
37
37
ql/target
38
- key : ${{ runner.os }}-qltest-cargo-${{ hashFiles('**/Cargo.lock') }}
38
+ key : ${{ runner.os }}-qltest-cargo-${{ hashFiles('ql/ **/Cargo.lock') }}
39
39
- name : Build Extractor
40
40
run : cd ql; env "PATH=$PATH:`dirname ${CODEQL}`" ./create-extractor-pack.sh
41
41
env :
Original file line number Diff line number Diff line change @@ -29,24 +29,24 @@ jobs:
29
29
~/.cargo/registry
30
30
~/.cargo/git
31
31
ql/target
32
- key : ${{ runner.os }}-qltest-cargo-${{ hashFiles('**/Cargo.lock') }}
32
+ key : ${{ runner.os }}-qltest-cargo-${{ hashFiles('ql/ **/Cargo.lock') }}
33
33
- name : Build extractor
34
34
run : |
35
35
cd ql;
36
36
codeqlpath=$(dirname ${{ steps.find-codeql.outputs.codeql-path }});
37
37
env "PATH=$PATH:$codeqlpath" ./create-extractor-pack.sh
38
38
- name : Run QL tests
39
- run : |
39
+ run : |
40
40
"${CODEQL}" test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path "${{ github.workspace }}/ql/extractor-pack" --consistency-queries ql/ql/consistency-queries ql/ql/test
41
41
env :
42
42
CODEQL : ${{ steps.find-codeql.outputs.codeql-path }}
43
43
- name : Check QL formatting
44
- run : |
44
+ run : |
45
45
find ql/ql "(" -name "*.ql" -or -name "*.qll" ")" -print0 | xargs -0 "${CODEQL}" query format --check-only
46
46
env :
47
47
CODEQL : ${{ steps.find-codeql.outputs.codeql-path }}
48
48
- name : Check QL compilation
49
- run : |
49
+ run : |
50
50
"${CODEQL}" query compile --check-only --threads=4 --warnings=error --search-path "${{ github.workspace }}/ql/extractor-pack" "ql/ql/src" "ql/ql/examples"
51
51
env :
52
52
CODEQL : ${{ steps.find-codeql.outputs.codeql-path }}
Original file line number Diff line number Diff line change 50
50
~/.cargo/registry
51
51
~/.cargo/git
52
52
ruby/target
53
- key : ${{ runner.os }}-rust-cargo-${{ hashFiles('**/Cargo.lock') }}
53
+ key : ${{ runner.os }}-ruby- rust-cargo-${{ hashFiles('ruby/ **/Cargo.lock') }}
54
54
- name : Check formatting
55
55
run : cargo fmt --all -- --check
56
56
- name : Build
Original file line number Diff line number Diff line change 9
9
~/.cargo/registry
10
10
~/.cargo/git
11
11
ruby/target
12
- key : ${{ runner.os }}-qltest-cargo-${{ hashFiles('ruby/**/Cargo.lock') }}
12
+ key : ${{ runner.os }}-ruby- qltest-cargo-${{ hashFiles('ruby/**/Cargo.lock') }}
13
13
- name : Build Extractor
14
14
shell : bash
15
15
run : scripts/create-extractor-pack.sh
You can’t perform that action at this time.
0 commit comments