Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 34 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 MONAI Consortium
# Copyright 2022-2025 MONAI Consortium

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -45,24 +45,24 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"

- name: Enable NuGet cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4.2.3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: csharp

Expand All @@ -75,7 +75,7 @@ jobs:
working-directory: ./src

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3

analyze:
runs-on: ubuntu-latest
Expand All @@ -86,10 +86,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"

Expand All @@ -102,7 +102,7 @@ jobs:
tools: licensefinder

- name: Enable NuGet cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4.2.3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
Expand Down Expand Up @@ -130,24 +130,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"

- name: Enable NuGet cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4.2.3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -216,16 +216,16 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"

- name: Enable NuGet cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4.2.3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
Expand All @@ -236,12 +236,14 @@ jobs:
run: dotnet restore
working-directory: ./src

- name: Install GitVersion
run: dotnet tool install --global GitVersion.Tool
- name: Setup GitVersion
uses: gittools/actions/gitversion/setup@v3.1.1
with:
versionSpec: '6.0.5'

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v0.10.2
uses: gittools/actions/gitversion/execute@v3.1.11
with:
useConfigFile: true
updateAssemblyInfo: true
Expand All @@ -264,7 +266,7 @@ jobs:
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
mkdir $PACKAGEDIR
dotnet pack --no-build -c ${{ env.BUILD_CONFIG }} -o $PACKAGEDIR -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }}
dotnet pack --no-build -c ${{ env.BUILD_CONFIG }} -o $PACKAGEDIR -p:PackageVersion=${{ steps.gitversion.outputs.majorMinorPatch }}-${{ steps.gitversion.outputs.EscapedBranchName }}.${{ steps.gitversion.outputs.CommitsSinceVersionSource }}
ls -lR $PACKAGEDIR
working-directory: ./src

Expand All @@ -282,7 +284,7 @@ jobs:
needs: [build, unit-test]
if: ${{ ! ( github.event.inputs.nuget ) && ! ( contains(github.ref, 'refs/heads/main') ) }}
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
id: download

- name: List artifacts
Expand All @@ -291,7 +293,7 @@ jobs:
- name: Install grp
run: dotnet tool install gpr -g

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
Expand All @@ -307,7 +309,7 @@ jobs:
needs: [build, unit-test]
if: ${{ github.event.inputs.nuget }}
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
id: download

- name: List artifacts
Expand All @@ -316,7 +318,7 @@ jobs:
- name: Install grp
run: dotnet tool install gpr -g

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
Expand All @@ -332,14 +334,14 @@ jobs:
runs-on: ubuntu-latest
needs: [build, unit-test]
env:
MAJORMINORPATCH: ${{ needs.build.outputs.majorMinorPatch }}
MAJORMINORPATCH: ${{ needs.build.outputs.MajorMinorPatch }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
id: download

- name: List artifacts
Expand All @@ -356,12 +358,12 @@ jobs:
msg: ${{ github.repository }}

- name: Install GitReleaseManager
uses: gittools/actions/gitreleasemanager/setup@v0.10.2
uses: gittools/actions/gitreleasemanager/setup@v3.1.11
with:
versionSpec: "0.13.x"
versionSpec: '0.18.x'

- name: Create release with GitReleaseManager
uses: gittools/actions/gitreleasemanager/create@v0.10.2
uses: gittools/actions/gitreleasemanager/create@v3.1.11
with:
token: ${{ secrets.GITHUB_TOKEN }}
owner: ${{ steps.repo.outputs._0 }}
Expand All @@ -371,7 +373,7 @@ jobs:

- name: Publish release with GitReleaseManager
if: ${{ contains(github.ref, 'refs/heads/main') }}
uses: gittools/actions/gitreleasemanager/publish@v0.10.2
uses: gittools/actions/gitreleasemanager/publish@v3.1.11
with:
token: ${{ secrets.GITHUB_TOKEN }}
owner: ${{ steps.repo.outputs._0 }}
Expand All @@ -380,7 +382,7 @@ jobs:

- name: Close release with GitReleaseManager
if: ${{ contains(github.ref, 'refs/heads/main') }}
uses: gittools/actions/gitreleasemanager/close@v0.10.2
uses: gittools/actions/gitreleasemanager/close@v3.1.11
with:
token: ${{ secrets.GITHUB_TOKEN }}
owner: ${{ steps.repo.outputs._0 }}
Expand Down
1 change: 1 addition & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ header:
license:
spdx-id: Apache-2.0
copyright-owner: MONAI Consortium
copyright-year: 2022-2025

paths:
- 'src'
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright 2022 MONAI Consortium
~ Copyright 2022-2025 MONAI Consortium
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright 2022 MONAI Consortium
~ Copyright 2022-2025 MONAI Consortium
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion GitReleaseManager.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 MONAI Consortium
# Copyright 2022-2025 MONAI Consortium

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
23 changes: 8 additions & 15 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 MONAI Consortium
# Copyright 2022-2025 MONAI Consortium

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,56 +12,49 @@
# See the License for the specific language governing permissions and
# limitations under the License.

workflow: GitHubFlow/v1
assembly-versioning-scheme: MajorMinorPatchTag
assembly-file-versioning-scheme: MajorMinorPatchTag
mode: ContinuousDeployment
branches:
main:
tag: ''
label: ''
mode: ContinuousDelivery
increment: Patch
prevent-increment-of-merged-branch-version: true
track-merge-target: false
source-branches: [ 'release' ]
tracks-release-branches: false
is-release-branch: false
is-mainline: true
pre-release-weight: 55000
release:
tag: rc
label: rc
regex: ^releases?[/-]
mode: ContinuousDeployment
increment: None
prevent-increment-of-merged-branch-version: true
track-merge-target: false
source-branches: [ 'main', 'release' ]
tracks-release-branches: false
is-release-branch: true
is-mainline: false
pre-release-weight: 30000
feature:
tag: alpha.{BranchName}
label: alpha.{BranchName}
regex: ^features?[/-]
mode: ContinuousDeployment
increment: Inherit
prevent-increment-of-merged-branch-version: false
track-merge-target: false
source-branches: [ 'main', 'release', 'feature' ]
tracks-release-branches: false
is-release-branch: false
is-mainline: false
pre-release-weight: 30000
pull-request:
tag: pr
label: pr
regex: ^(pull|pull\-requests|pr)[/-]
mode: ContinuousDeployment
increment: Inherit
prevent-increment-of-merged-branch-version: false
tag-number-pattern: '[/-](?<number>\d+)[-/]'
label-number-pattern: '[/-](?<number>\d+)[-/]'
track-merge-target: false
source-branches: [ 'main', 'release', 'feature' ]
tracks-release-branches: false
is-release-branch: false
is-mainline: false
pre-release-weight: 30000

ignore:
Expand Down
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 MONAI Consortium
# Copyright 2022-2025 MONAI Consortium

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Loading
Loading