1
- # SPDX-FileCopyrightText: © 2022 MONAI Consortium
1
+ # SPDX-FileCopyrightText: © 2022-2024 MONAI Consortium
2
2
# SPDX-License-Identifier: Apache License 2.0
3
3
4
4
name : ci
34
34
35
35
steps :
36
36
- name : Checkout repository
37
- uses : actions/checkout@v3
37
+ uses : actions/checkout@v4
38
38
with :
39
39
fetch-depth : 0
40
40
@@ -43,15 +43,15 @@ jobs:
43
43
dotnet-version : " 8.0.x"
44
44
45
45
- name : Enable NuGet cache
46
- uses : actions/cache@v3.3.0
46
+ uses : actions/cache@v4.0.2
47
47
with :
48
48
path : ~/.nuget/packages
49
49
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
50
50
restore-keys : |
51
51
${{ runner.os }}-nuget
52
52
53
53
- name : Initialize CodeQL
54
- uses : github/codeql-action/init@v2
54
+ uses : github/codeql-action/init@v3
55
55
with :
56
56
languages : csharp
57
57
64
64
working-directory : ./src
65
65
66
66
- name : Perform CodeQL Analysis
67
- uses : github/codeql-action/analyze@v2
67
+ uses : github/codeql-action/analyze@v3
68
68
69
69
analyze :
70
70
runs-on : ubuntu-latest
79
79
80
80
steps :
81
81
- name : Checkout repository
82
- uses : actions/checkout@v3
82
+ uses : actions/checkout@v4
83
83
with :
84
84
fetch-depth : 0
85
85
- uses : actions/setup-dotnet@v3
95
95
tools : licensefinder
96
96
97
97
- name : Enable NuGet cache
98
- uses : actions/cache@v3.3.0
98
+ uses : actions/cache@v4.0.2
99
99
with :
100
100
path : ~/.nuget/packages
101
101
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -117,30 +117,30 @@ jobs:
117
117
run : license_finder -r
118
118
119
119
- name : Check License Header
120
- uses : apache/skywalking-eyes@v0.4 .0
120
+ uses : apache/skywalking-eyes@v0.6 .0
121
121
122
122
unit-test :
123
123
runs-on : ubuntu-latest
124
124
steps :
125
125
- name : Set up JDK 11
126
- uses : actions/setup-java@v3
126
+ uses : actions/setup-java@v4
127
127
with :
128
128
distribution : ' zulu'
129
129
java-version : ' 17'
130
130
131
- - uses : actions/setup-dotnet@v3
131
+ - uses : actions/setup-dotnet@v4
132
132
with :
133
133
dotnet-version : " 8.0.x"
134
134
135
135
- name : Enable NuGet cache
136
- uses : actions/cache@v3.3.0
136
+ uses : actions/cache@v4.0.2
137
137
with :
138
138
path : ~/.nuget/packages
139
139
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
140
140
restore-keys : |
141
141
${{ runner.os }}-nuget
142
142
143
- - uses : actions/checkout@v3
143
+ - uses : actions/checkout@v4
144
144
with :
145
145
fetch-depth : 0
146
146
@@ -188,7 +188,7 @@ jobs:
188
188
docker volume rm tests_minio_config
189
189
working-directory : ./src/Plugins/MinIO/Tests
190
190
191
- - uses : codecov/codecov-action@v3.1 .1
191
+ - uses : codecov/codecov-action@v4.4 .1
192
192
with :
193
193
token : ${{ secrets.CODECOV_TOKEN }}
194
194
directory : " src/"
@@ -206,7 +206,7 @@ jobs:
206
206
207
207
strategy :
208
208
matrix :
209
- os : [ubuntu-latest, windows-latest ]
209
+ os : [ubuntu-latest]
210
210
fail-fast : true
211
211
212
212
permissions :
@@ -217,7 +217,7 @@ jobs:
217
217
218
218
steps :
219
219
- name : Checkout repository
220
- uses : actions/checkout@v3
220
+ uses : actions/checkout@v4
221
221
with :
222
222
fetch-depth : 0
223
223
@@ -226,7 +226,7 @@ jobs:
226
226
dotnet-version : " 8.0.x"
227
227
228
228
- name : Enable NuGet cache
229
- uses : actions/cache@v3.3.0
229
+ uses : actions/cache@v4.0.2
230
230
with :
231
231
path : ~/.nuget/packages
232
232
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -278,15 +278,15 @@ jobs:
278
278
279
279
- name : Upload Nuget
280
280
if : ${{ matrix.os == 'ubuntu-latest' }}
281
- uses : actions/upload-artifact@v3.1.2
281
+ uses : actions/upload-artifact@v4.0.0
282
282
with :
283
283
name : nuget
284
284
path : ${{ github.workspace }}/release/*.nupkg
285
285
retention-days : 30
286
286
287
287
- name : Upload Zipped Plug-ins
288
288
if : ${{ matrix.os == 'ubuntu-latest' }}
289
- uses : actions/upload-artifact@v3.1.2
289
+ uses : actions/upload-artifact@v4.0.0
290
290
with :
291
291
name : plug-ins
292
292
path : ${{ github.workspace }}/src/Plugins/release/*.zip
@@ -298,7 +298,7 @@ jobs:
298
298
needs : [build, unit-test]
299
299
if : ${{ ! ( github.event.inputs.nuget ) && ! ( contains(github.ref, 'refs/heads/main') ) }}
300
300
steps :
301
- - uses : actions/download-artifact@v3
301
+ - uses : actions/download-artifact@v4
302
302
id : download
303
303
304
304
- name : List artifacts
@@ -323,7 +323,7 @@ jobs:
323
323
needs : [build, unit-test]
324
324
if : ${{ github.event.inputs.nuget }}
325
325
steps :
326
- - uses : actions/download-artifact@v3
326
+ - uses : actions/download-artifact@v4
327
327
id : download
328
328
329
329
- name : List artifacts
@@ -351,11 +351,11 @@ jobs:
351
351
MAJORMINORPATCH : ${{ needs.build.outputs.majorMinorPatch }}
352
352
353
353
steps :
354
- - uses : actions/checkout@v3
354
+ - uses : actions/checkout@v4
355
355
with :
356
356
fetch-depth : 0
357
357
358
- - uses : actions/download-artifact@v3
358
+ - uses : actions/download-artifact@v4
359
359
id : download
360
360
361
361
- name : List artifacts
@@ -404,4 +404,4 @@ jobs:
404
404
token : ${{ secrets.GITHUB_TOKEN }}
405
405
owner : ${{ steps.repo.outputs._0 }}
406
406
repository : ${{ steps.repo.outputs._1 }}
407
- milestone : ${{ env.MAJORMINORPATCH }}
407
+ milestone : ${{ env.MAJORMINORPATCH }}
0 commit comments