Skip to content

Commit ec52346

Browse files
committed
fixing unit test files
1 parent ba00a7f commit ec52346

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

.github/workflows/validate-codeql-queries-cpp.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ⚙️ DEMO CodeQL - Validate Queries (cpp)
1+
name: ⚙️ CodeQL - Validate Queries (cpp)
22

33
on:
44
push:
@@ -19,6 +19,7 @@ jobs:
1919
- name: Checkout repository
2020
uses: actions/checkout@v3
2121

22+
2223
- name: Install QLT
2324
id: install-qlt
2425
uses: ./.github/actions/install-qlt-local
@@ -31,6 +32,7 @@ jobs:
3132
run: |
3233
qlt test run get-matrix --os-version ubuntu-latest --base example/
3334
35+
3436
validate-queries:
3537
name: Validate Queries
3638
needs: create-matrix
@@ -44,11 +46,15 @@ jobs:
4446
- name: Checkout repository
4547
uses: actions/checkout@v3
4648

49+
50+
4751
- name: Install QLT
52+
id: install-qlt
4853
uses: ./.github/actions/install-qlt-local
4954
with:
5055
qlt-version: 'latest'
5156
add-to-path: true
57+
5258

5359
- name: Install CodeQL
5460
uses: ./.github/actions/install-codeql
@@ -68,14 +74,15 @@ jobs:
6874
echo "QLT Home: ${{ steps.install-qlt.outputs.qlt-home }}"
6975
qlt version
7076
77+
7178
- name: Install QL Packs
7279
shell: bash
7380
run: |
7481
qlt query run install-packs --base example/
7582
83+
7684
- name: Run validation tests
7785
shell: bash
7886
run: >
79-
qlt validation run check-queries --pretty-print --language cpp --base example/ >> $GITHUB_STEP_SUMMARY
80-
81-
qlt validation run check-queries --language cpp --base example/
87+
qlt validation run check-queries --pretty-print --language cpp --base example/ >> $GITHUB_STEP_SUMMARY
88+
qlt validation run check-queries --language cpp --base example/

src/CodeQLToolkit.Features/Templates/Validation/Actions/validate-query-metadata.liquid

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
qlt-version: 'latest'
2828
add-to-path: true
2929

30-
- name: Export unit test matrix
31-
id: export-unit-test-matrix
30+
- name: Export test matrix
31+
id: export-test-matrix
3232
run: |
3333
qlt test run get-matrix --os-version {{ use_runner }} --base example/
3434
{% else %}
@@ -92,12 +92,18 @@ jobs:
9292
echo -e "Checking QLT Version:"
9393
echo "QLT Home: ${{ steps.install-qlt.outputs.qlt-home }}"
9494
qlt version
95-
95+
{% endraw %}
96+
{% if dev_mode %}
97+
- name: Install QL Packs
98+
shell: bash
99+
run: |
100+
qlt query run install-packs --base example/
101+
{% else %}
96102
- name: Install QL Packs
97103
shell: bash
98104
run: |
99105
qlt query run install-packs
100-
{% endraw %}
106+
{% endif %}
101107
{% if dev_mode %}
102108
- name: Run validation tests
103109
shell: bash

0 commit comments

Comments
 (0)