File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Swift: Run QL Tests"
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - " swift/**"
7
+ - .github/workflows/swift-qltest.yml
8
+ branches :
9
+ - main
10
+ defaults :
11
+ run :
12
+ working-directory : swift
13
+
14
+ jobs :
15
+ qlformat :
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - uses : ./.github/actions/fetch-codeql
20
+ - name : Check QL formatting
21
+ run : find ql "(" -name "*.ql" -or -name "*.qll" ")" -print0 | xargs -0 codeql query format --check-only
22
+ qltest :
23
+ runs-on : ubuntu-latest
24
+ strategy :
25
+ fail-fast : false
26
+ steps :
27
+ - uses : actions/checkout@v2
28
+ - uses : ./.github/actions/fetch-codeql
29
+ - name : Install bazelisk
30
+ run : |
31
+ sudo apt-get update
32
+ sudo apt-get install -y wget
33
+ wget https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-linux-amd64
34
+ mv bazelisk-linux-amd64 /usr/local/bin/bazel
35
+ chmod +x /usr/local/bin/bazel
36
+ - name : Build Swift extractor
37
+ run : |
38
+ bazel run //swift:create-extractor-pack
39
+ - name : Run QL tests
40
+ run : |
41
+ codeql test run --threads=0 --ram 5000 --search-path "${{ github.workspace }}/swift/extractor-pack" --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition ql/test
42
+ env :
43
+ GITHUB_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments