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

Skip to content

Commit 4415060

Browse files
committed
Add QLTest workflow
1 parent 080c56c commit 4415060

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/qltest.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run QL Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
qltest:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Fetch CodeQL
18+
run: |
19+
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip
20+
unzip -q codeql-linux64.zip
21+
env:
22+
GITHUB_TOKEN: ${{ github.token }}
23+
- uses: actions/cache@v2
24+
with:
25+
path: |
26+
~/.cargo/registry
27+
~/.cargo/git
28+
target
29+
key: ${{ runner.os }}-qltest-cargo-${{ hashFiles('**/Cargo.lock') }}
30+
- name: Build Extractor
31+
run: env "PATH=$PATH:${{ github.workspace }}/codeql" ./create-extractor-pack.sh
32+
- name: Run QL tests
33+
run: codeql/codeql test run --search-path "${{ github.workspace }}" ql/test
34+

0 commit comments

Comments
 (0)