diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f487ef0..77b2d2b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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. @@ -45,16 +45,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') }} @@ -62,7 +62,7 @@ jobs: ${{ runner.os }}-nuget - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: csharp @@ -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 @@ -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" @@ -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') }} @@ -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 @@ -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') }} @@ -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 @@ -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 @@ -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 @@ -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: @@ -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 @@ -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: @@ -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 @@ -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 }} @@ -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 }} @@ -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 }} diff --git a/.licenserc.yaml b/.licenserc.yaml index 9d15715..47ac3d8 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -2,6 +2,7 @@ header: license: spdx-id: Apache-2.0 copyright-owner: MONAI Consortium + copyright-year: 2022-2025 paths: - 'src' diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index b71ba6e..ee10b2e 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,5 +1,5 @@