Skip to content

Commit 113649b

Browse files
committed
Bump download-artifact@v2 to @v4 and format.
1 parent 0bf9ce3 commit 113649b

File tree

2 files changed

+8
-21
lines changed

2 files changed

+8
-21
lines changed

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

+7-20
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
name: ⚙️ CodeQL - Run Unit Tests (cpp)
22

3-
43
on:
54
push:
65
branches:
7-
- 'main'
6+
- "main"
87
pull_request:
98
branches:
10-
- 'main'
9+
- "main"
1110
workflow_dispatch:
1211

13-
1412
jobs:
1513
create-unit-test-matrix:
1614
name: Create CodeQL Unit Test Matrix
@@ -21,20 +19,18 @@ jobs:
2119
- name: Checkout repository
2220
uses: actions/checkout@v3
2321

24-
2522
- name: Install QLT
2623
id: install-qlt
2724
uses: ./.github/actions/install-qlt-local
2825
with:
29-
qlt-version: 'latest'
26+
qlt-version: "latest"
3027
add-to-path: true
3128

3229
- name: Export unit test matrix
3330
id: export-unit-test-matrix
3431
run: |
3532
qlt test run get-matrix --os-version ubuntu-latest --base example/
3633
37-
3834
run-test-suites:
3935
name: Run Unit Tests
4036
needs: create-unit-test-matrix
@@ -48,15 +44,13 @@ jobs:
4844
- name: Checkout repository
4945
uses: actions/checkout@v3
5046

51-
5247
- name: Install QLT
5348
id: install-qlt
5449
uses: ./.github/actions/install-qlt-local
5550
with:
56-
qlt-version: 'latest'
51+
qlt-version: "latest"
5752
add-to-path: true
5853

59-
6054
- name: Install CodeQL
6155
id: install-codeql
6256
shell: bash
@@ -77,13 +71,11 @@ jobs:
7771
echo "QLT Home: ${{ steps.install-qlt.outputs.qlt-home }}"
7872
qlt version
7973
80-
8174
- name: Install QL Packs
8275
shell: bash
8376
run: |
8477
qlt query run install-packs --base example/
8578
86-
8779
- name: Run test suites
8880
id: run-test-suites
8981
env:
@@ -104,7 +96,6 @@ jobs:
10496
--work-dir $RUNNER_TMP
10597
--base example/
10698
107-
10899
- name: Upload test results
109100
uses: actions/upload-artifact@v4
110101
with:
@@ -118,24 +109,20 @@ jobs:
118109
needs: [run-test-suites]
119110
runs-on: ubuntu-latest
120111
steps:
121-
122112
- name: Checkout repository
123113
uses: actions/checkout@v3
124114

125-
126115
- name: Install QLT
127116
id: install-qlt
128117
uses: ./.github/actions/install-qlt-local
129118
with:
130-
qlt-version: 'latest'
119+
qlt-version: "latest"
131120
add-to-path: true
132121

133-
134122
- name: Collect test results
135-
uses: actions/download-artifact@v2
123+
uses: actions/download-artifact@v4
136124

137125
- name: Validate test results
138126
run: |
139127
qlt test run validate-unit-tests --pretty-print --results-directory . >> $GITHUB_STEP_SUMMARY
140-
qlt test run validate-unit-tests --results-directory .
141-
128+
qlt test run validate-unit-tests --results-directory .

src/CodeQLToolkit.Features/Templates/Test/Actions/run-unit-tests.liquid

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
{% endif %}
171171
{% raw %}
172172
- name: Collect test results
173-
uses: actions/download-artifact@v2
173+
uses: actions/download-artifact@v4
174174
175175
- name: Validate test results
176176
run: |

0 commit comments

Comments
 (0)