Skip to content

Commit 21ec97b

Browse files
authored
Merge pull request #62 from Project-MONAI/vchang/net8
Upgrade to .NET 8
2 parents 758ccea + e154710 commit 21ec97b

11 files changed

+3286
-2683
lines changed

.github/workflows/ci.yml

100644100755
Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151

5252
- uses: actions/setup-dotnet@v3
5353
with:
54-
dotnet-version: "6.0.x"
54+
dotnet-version: "8.0.x"
5555

5656
- name: Enable NuGet cache
5757
uses: actions/cache@v3.2.3
@@ -91,7 +91,7 @@ jobs:
9191
fetch-depth: 0
9292
- uses: actions/setup-dotnet@v3
9393
with:
94-
dotnet-version: "6.0.x"
94+
dotnet-version: "8.0.x"
9595

9696
- name: Enable Homebrew
9797
run: echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
@@ -133,11 +133,11 @@ jobs:
133133
uses: actions/setup-java@v3
134134
with:
135135
distribution: 'zulu'
136-
java-version: '11'
136+
java-version: '17'
137137

138138
- uses: actions/setup-dotnet@v3
139139
with:
140-
dotnet-version: "6.0.x"
140+
dotnet-version: "8.0.x"
141141

142142
- name: Enable NuGet cache
143143
uses: actions/cache@v3.2.3
@@ -174,7 +174,10 @@ jobs:
174174
working-directory: ./src
175175

176176
- 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
178181
working-directory: ./src
179182

180183
- name: End SonarScanner
@@ -187,7 +190,7 @@ jobs:
187190
- uses: codecov/codecov-action@v3.1.1
188191
with:
189192
token: ${{ secrets.CODECOV_TOKEN }}
190-
directory: "src/${{ env.TEST_RESULTS }}"
193+
directory: "src/"
191194
files: "**/coverage.opencover.xml"
192195
flags: unittests
193196
name: codecov-umbrella
@@ -219,7 +222,7 @@ jobs:
219222

220223
- uses: actions/setup-dotnet@v3
221224
with:
222-
dotnet-version: "6.0.x"
225+
dotnet-version: "8.0.x"
223226

224227
- name: Enable NuGet cache
225228
uses: actions/cache@v3.2.3
@@ -292,7 +295,7 @@ jobs:
292295
env:
293296
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
294297
with:
295-
dotnet-version: "6.0.x"
298+
dotnet-version: "8.0.x"
296299
source-url: https://nuget.pkg.github.com/Project-MONAI/index.json
297300

298301
- name: Publish to GitHub
@@ -317,7 +320,7 @@ jobs:
317320
env:
318321
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
319322
with:
320-
dotnet-version: "6.0.x"
323+
dotnet-version: "8.0.x"
321324
source-url: https://nuget.pkg.github.com/Project-MONAI/index.json
322325

323326
- name: Publish to GitHub

0 commit comments

Comments
 (0)