Skip to content

Commit 69490d6

Browse files
committed
updated now syncing test
1 parent feec8ec commit 69490d6

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/run-codeql-unit-tests-cpp.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ⚙️ DEMO CodeQL - Run Unit Tests (cpp)
1+
name: ⚙️ CodeQL - Run Unit Tests (cpp)
22

33

44
on:
@@ -20,6 +20,7 @@ jobs:
2020
- name: Checkout repository
2121
uses: actions/checkout@v3
2222

23+
2324
- name: Install QLT
2425
id: install-qlt
2526
uses: ./.github/actions/install-qlt-local
@@ -32,6 +33,7 @@ jobs:
3233
run: |
3334
qlt test run get-matrix --os-version ubuntu-latest --base example/
3435
36+
3537
run-test-suites:
3638
name: Run Unit Tests
3739
needs: create-unit-test-matrix
@@ -45,13 +47,15 @@ jobs:
4547
- name: Checkout repository
4648
uses: actions/checkout@v3
4749

50+
4851
- name: Install QLT
4952
id: install-qlt
5053
uses: ./.github/actions/install-qlt-local
5154
with:
5255
qlt-version: 'latest'
5356
add-to-path: true
54-
57+
58+
5559
- name: Install CodeQL
5660
id: install-codeql
5761
uses: ./.github/actions/install-codeql
@@ -71,11 +75,13 @@ jobs:
7175
echo "QLT Home: ${{ steps.install-qlt.outputs.qlt-home }}"
7276
qlt version
7377
78+
7479
- name: Install QL Packs
7580
shell: bash
7681
run: |
7782
qlt query run install-packs --base example/
7883
84+
7985
- name: Run test suites
8086
id: run-test-suites
8187
env:
@@ -86,11 +92,14 @@ jobs:
8692
RUNNER_TMP: ${{ runner.temp }}
8793
shell: bash
8894
run: >
89-
qlt test run execute-unit-tests
95+
96+
97+
qlt test run execute-unit-tests
98+
--codeql-args "--threads=0"
9099
--num-threads 4
91100
--language cpp
92101
--runner-os $RUNNER_OS
93-
--work-dir $RUNNER_TMP
102+
--work-dir $RUNNER_TMP
94103
--base example/
95104
96105
@@ -107,20 +116,24 @@ jobs:
107116
needs: [run-test-suites]
108117
runs-on: ubuntu-latest
109118
steps:
119+
110120
- name: Checkout repository
111121
uses: actions/checkout@v3
112122

123+
113124
- name: Install QLT
114125
id: install-qlt
115126
uses: ./.github/actions/install-qlt-local
116127
with:
117128
qlt-version: 'latest'
118129
add-to-path: true
119130

131+
120132
- name: Collect test results
121133
uses: actions/download-artifact@v2
122134

123135
- name: Validate test results
124136
run: |
125137
qlt test run validate-unit-tests --pretty-print --results-directory . >> $GITHUB_STEP_SUMMARY
126-
qlt test run validate-unit-tests --results-directory .
138+
qlt test run validate-unit-tests --results-directory .
139+

0 commit comments

Comments
 (0)