@@ -51,10 +51,10 @@ jobs:
51
51
52
52
- uses : actions/setup-dotnet@v3
53
53
with :
54
- dotnet-version : " 6 .0.x"
54
+ dotnet-version : " 8 .0.x"
55
55
56
56
- name : Enable NuGet cache
57
- uses : actions/cache@v3.0.11
57
+ uses : actions/cache@v3.2.3
58
58
with :
59
59
path : ~/.nuget/packages
60
60
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
91
91
fetch-depth : 0
92
92
- uses : actions/setup-dotnet@v3
93
93
with :
94
- dotnet-version : " 6 .0.x"
94
+ dotnet-version : " 8 .0.x"
95
95
96
96
- name : Enable Homebrew
97
97
run : echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
@@ -102,7 +102,7 @@ jobs:
102
102
tools : licensefinder
103
103
104
104
- name : Enable NuGet cache
105
- uses : actions/cache@v3.0.11
105
+ uses : actions/cache@v3.2.3
106
106
with :
107
107
path : ~/.nuget/packages
108
108
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -133,14 +133,14 @@ jobs:
133
133
uses : actions/setup-java@v3
134
134
with :
135
135
distribution : ' zulu'
136
- java-version : ' 11 '
136
+ java-version : ' 17 '
137
137
138
138
- uses : actions/setup-dotnet@v3
139
139
with :
140
- dotnet-version : " 6 .0.x"
140
+ dotnet-version : " 8 .0.x"
141
141
142
142
- name : Enable NuGet cache
143
- uses : actions/cache@v3.0.11
143
+ uses : actions/cache@v3.2.3
144
144
with :
145
145
path : ~/.nuget/packages
146
146
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -174,7 +174,10 @@ jobs:
174
174
working-directory : ./src
175
175
176
176
- name : Test
177
- run : find ~+ -type f -name "*.Tests.csproj" | xargs -L1 dotnet test -c ${{ env.BUILD_CONFIG }} -v=minimal -r "${{ env.TEST_RESULTS }}" --collect:"XPlat Code Coverage" --settings coverlet.runsettings
177
+ env :
178
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
179
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
180
+ run : find ~+ -type f -name "*.Tests.csproj" | xargs -L1 dotnet test -c ${{ env.BUILD_CONFIG }} -v=minimal --results-directory "${{ env.TEST_RESULTS }}" --collect:"XPlat Code Coverage" --settings coverlet.runsettings
178
181
working-directory : ./src
179
182
180
183
- name : End SonarScanner
@@ -187,7 +190,7 @@ jobs:
187
190
188
191
with :
189
192
token : ${{ secrets.CODECOV_TOKEN }}
190
- directory : " src/${{ env.TEST_RESULTS }} "
193
+ directory : " src/"
191
194
files : " **/coverage.opencover.xml"
192
195
flags : unittests
193
196
name : codecov-umbrella
@@ -219,10 +222,10 @@ jobs:
219
222
220
223
- uses : actions/setup-dotnet@v3
221
224
with :
222
- dotnet-version : " 6 .0.x"
225
+ dotnet-version : " 8 .0.x"
223
226
224
227
- name : Enable NuGet cache
225
- uses : actions/cache@v3.0.11
228
+ uses : actions/cache@v3.2.3
226
229
with :
227
230
path : ~/.nuget/packages
228
231
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -267,7 +270,7 @@ jobs:
267
270
268
271
- name : Upload Nuget
269
272
if : ${{ matrix.os == 'ubuntu-latest' }}
270
-
273
+
271
274
with :
272
275
name : nuget
273
276
path : ${{ github.workspace }}/release/*.nupkg
@@ -292,7 +295,7 @@ jobs:
292
295
env :
293
296
NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
294
297
with :
295
- dotnet-version : " 6 .0.x"
298
+ dotnet-version : " 8 .0.x"
296
299
source-url : https://nuget.pkg.github.com/Project-MONAI/index.json
297
300
298
301
- name : Publish to GitHub
@@ -317,7 +320,7 @@ jobs:
317
320
env :
318
321
NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
319
322
with :
320
- dotnet-version : " 6 .0.x"
323
+ dotnet-version : " 8 .0.x"
321
324
source-url : https://nuget.pkg.github.com/Project-MONAI/index.json
322
325
323
326
- name : Publish to GitHub
0 commit comments