Skip to content

Commit 4434de4

Browse files
authored
Merge pull request #68 from Project-MONAI/release/1.0.0
+semver: major Release/1.0.0
2 parents 4af7e81 + db7c05e commit 4434de4

13 files changed

+3319
-2698
lines changed

.github/workflows/ci.yml

100644100755
Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ 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
57-
uses: actions/cache@v3.0.11
57+
uses: actions/cache@v3.2.3
5858
with:
5959
path: ~/.nuget/packages
6060
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -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
@@ -102,7 +102,7 @@ jobs:
102102
tools: licensefinder
103103

104104
- name: Enable NuGet cache
105-
uses: actions/cache@v3.0.11
105+
uses: actions/cache@v3.2.3
106106
with:
107107
path: ~/.nuget/packages
108108
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -133,14 +133,14 @@ 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
143-
uses: actions/cache@v3.0.11
143+
uses: actions/cache@v3.2.3
144144
with:
145145
path: ~/.nuget/packages
146146
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -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/[email protected]
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,10 +222,10 @@ 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
225-
uses: actions/cache@v3.0.11
228+
uses: actions/cache@v3.2.3
226229
with:
227230
path: ~/.nuget/packages
228231
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -267,7 +270,7 @@ jobs:
267270

268271
- name: Upload Nuget
269272
if: ${{ matrix.os == 'ubuntu-latest' }}
270-
uses: actions/[email protected].1
273+
uses: actions/[email protected].2
271274
with:
272275
name: nuget
273276
path: ${{ github.workspace }}/release/*.nupkg
@@ -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

.github/workflows/package-cleanup.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/delete-package-versions@v3
17+
- uses: actions/delete-package-versions@v4
1818
name: Monai.Deploy.Security
1919
with:
2020
package-name: 'Monai.Deploy.Security'
21+
package-type: nuget
2122
min-versions-to-keep: 10
2223
delete-only-pre-release-versions: "true"

0 commit comments

Comments
 (0)