File tree Expand file tree Collapse file tree 2 files changed +21
-8
lines changed
src/CodeQLToolkit.Features/Templates/Validation/Actions Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 1
- name : ⚙️ DEMO CodeQL - Validate Queries (cpp)
1
+ name : ⚙️ CodeQL - Validate Queries (cpp)
2
2
3
3
on :
4
4
push :
19
19
- name : Checkout repository
20
20
uses : actions/checkout@v3
21
21
22
+
22
23
- name : Install QLT
23
24
id : install-qlt
24
25
uses : ./.github/actions/install-qlt-local
31
32
run : |
32
33
qlt test run get-matrix --os-version ubuntu-latest --base example/
33
34
35
+
34
36
validate-queries :
35
37
name : Validate Queries
36
38
needs : create-matrix
@@ -44,11 +46,15 @@ jobs:
44
46
- name : Checkout repository
45
47
uses : actions/checkout@v3
46
48
49
+
50
+
47
51
- name : Install QLT
52
+ id : install-qlt
48
53
uses : ./.github/actions/install-qlt-local
49
54
with :
50
55
qlt-version : ' latest'
51
56
add-to-path : true
57
+
52
58
53
59
- name : Install CodeQL
54
60
uses : ./.github/actions/install-codeql
@@ -68,14 +74,15 @@ jobs:
68
74
echo "QLT Home: ${{ steps.install-qlt.outputs.qlt-home }}"
69
75
qlt version
70
76
77
+
71
78
- name : Install QL Packs
72
79
shell : bash
73
80
run : |
74
81
qlt query run install-packs --base example/
75
82
83
+
76
84
- name : Run validation tests
77
85
shell : bash
78
86
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/
Original file line number Diff line number Diff line change 27
27
qlt-version: 'latest'
28
28
add-to-path: true
29
29
30
- - name: Export unit test matrix
31
- id: export-unit- test-matrix
30
+ - name: Export test matrix
31
+ id: export-test-matrix
32
32
run: |
33
33
qlt test run get-matrix --os-version {{ use_runner }} --base example/
34
34
{% else %}
@@ -92,12 +92,18 @@ jobs:
92
92
echo -e "Checking QLT Version:"
93
93
echo "QLT Home: ${{ steps.install-qlt.outputs.qlt-home }}"
94
94
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 %}
96
102
- name: Install QL Packs
97
103
shell: bash
98
104
run: |
99
105
qlt query run install-packs
100
- {% endraw %}
106
+ {% endif %}
101
107
{% if dev_mode %}
102
108
- name: Run validation tests
103
109
shell: bash
You can’t perform that action at this time.
0 commit comments