@@ -24,27 +24,45 @@ defaults:
24
24
working-directory : ruby
25
25
26
26
jobs :
27
- qltest :
27
+ qlformat :
28
28
runs-on : ubuntu-latest
29
29
steps :
30
30
- uses : actions/checkout@v2
31
31
- uses : ./.github/actions/fetch-codeql
32
- - uses : ./ruby/actions/create-extractor-pack
33
- - name : Run QL tests
34
- run : |
35
- codeql test run --threads=0 --ram 5000 --search-path "${{ github.workspace }}/ruby/extractor-pack" --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --consistency-queries ql/consistency-queries ql/test
36
- env :
37
- GITHUB_TOKEN : ${{ github.token }}
38
32
- name : Check QL formatting
39
33
run : find ql "(" -name "*.ql" -or -name "*.qll" ")" -print0 | xargs -0 codeql query format --check-only
34
+ qlcompile :
35
+ runs-on : ubuntu-latest
36
+ steps :
37
+ - uses : actions/checkout@v2
38
+ - uses : ./.github/actions/fetch-codeql
40
39
- name : Check QL compilation
41
40
run : |
42
41
codeql query compile --check-only --threads=0 --ram 5000 --warnings=error "ql/src" "ql/examples"
43
42
env :
44
43
GITHUB_TOKEN : ${{ github.token }}
44
+ qlupgrade :
45
+ runs-on : ubuntu-latest
46
+ steps :
47
+ - uses : actions/checkout@v2
48
+ - uses : ./.github/actions/fetch-codeql
45
49
- name : Check DB upgrade scripts
46
50
run : |
47
51
echo >empty.trap
48
52
codeql dataset import -S ql/lib/upgrades/initial/ruby.dbscheme testdb empty.trap
49
53
codeql dataset upgrade testdb --additional-packs ql/lib
50
54
diff -q testdb/ruby.dbscheme ql/lib/ruby.dbscheme
55
+ qltest :
56
+ runs-on : ubuntu-latest
57
+ strategy :
58
+ matrix :
59
+ slice : ["1/2", "2/2"]
60
+ steps :
61
+ - uses : actions/checkout@v2
62
+ - uses : ./.github/actions/fetch-codeql
63
+ - uses : ./ruby/actions/create-extractor-pack
64
+ - name : Run QL tests
65
+ run : |
66
+ codeql test run --threads=0 --ram 5000 --slice ${{ matrix.slice }} --search-path "${{ github.workspace }}/ruby/extractor-pack" --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --consistency-queries ql/consistency-queries ql/test
67
+ env :
68
+ GITHUB_TOKEN : ${{ github.token }}
0 commit comments