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
57
uses : actions/cache@v3.2.3
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
@@ -133,11 +133,11 @@ 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
143
uses : actions/cache@v3.2.3
@@ -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
- uses : codecov/codecov-action@v3.1.1
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,7 +222,7 @@ 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
228
uses : actions/cache@v3.2.3
@@ -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