-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade to .NET 8 Signed-off-by: Victor Chang <[email protected]>
- Loading branch information
Showing
146 changed files
with
19,404 additions
and
31,084 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,23 +65,23 @@ jobs: | |
run: cat src/AssemblyInfo.cs | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v2.1.0 | ||
uses: docker/login-action@v3.0.0 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v4.4.0 | ||
uses: docker/metadata-action@v5.4.0 | ||
with: | ||
images: ${{ matrix.image }} | ||
tags: | | ||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} | ||
type=raw,value=${{ steps.gitversion.outputs.semVer }} | ||
- name: Build and Push Container Image for ${{ matrix.dockerfile }} | ||
uses: docker/build-push-action@v4.0.0 | ||
uses: docker/build-push-action@v5.1.0 | ||
with: | ||
context: . | ||
push: ${{ contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/heads/develop') ||contains(github.head_ref, 'release/') || contains(github.head_ref, 'feature/') || contains(github.head_ref, 'develop') }} | ||
|
@@ -124,7 +124,7 @@ jobs: | |
|
||
- name: Anchore Container Scan | ||
id: anchore-scan | ||
uses: anchore/[email protected].5 | ||
uses: anchore/[email protected].8 | ||
continue-on-error: true | ||
if: ${{ contains(github.ref, 'refs/heads/main') || contains(github.head_ref, 'release/') }} | ||
with: | ||
|
@@ -153,7 +153,7 @@ jobs: | |
|
||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: "6.0.x" | ||
dotnet-version: "8.0.x" | ||
|
||
- name: Enable NuGet cache | ||
uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ on: | |
workflow_dispatch: | ||
|
||
env: | ||
DOTNET_VERSION: '6.0.x' | ||
DOTNET_VERSION: '8.0.x' | ||
|
||
jobs: | ||
analyze: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ on: | |
workflow_dispatch: | ||
|
||
env: | ||
DOTNET_VERSION: '6.0.x' | ||
DOTNET_VERSION: '8.0.x' | ||
|
||
jobs: | ||
scan: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,23 +47,23 @@ jobs: | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v2.1.0 | ||
uses: docker/login-action@v3.0.0 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v4.4.0 | ||
uses: docker/metadata-action@v5.4.0 | ||
with: | ||
images: ${{ matrix.image }} | ||
tags: | | ||
type=raw,value=develop-latest | ||
type=raw,value=develop-nightly-${{ steps.date.outputs.date }} | ||
- name: Build and Push Container Image for ${{ matrix.feature }} | ||
uses: docker/build-push-action@v4.0.0 | ||
uses: docker/build-push-action@v5.1.0 | ||
with: | ||
context: . | ||
push: true | ||
|
@@ -80,7 +80,7 @@ jobs: | |
|
||
- name: Anchore Container Scan | ||
id: anchore-scan | ||
uses: anchore/[email protected].5 | ||
uses: anchore/[email protected].8 | ||
with: | ||
image: ${{ fromJSON(steps.meta.outputs.json).tags[0] }} | ||
fail-build: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ on: | |
workflow_dispatch: | ||
|
||
env: | ||
DOTNET_VERSION: '6.0.x' | ||
DOTNET_VERSION: '8.0.x' | ||
|
||
jobs: | ||
unit-tests-and-codecov: | ||
|
@@ -135,14 +135,14 @@ jobs: | |
- name: Generate LivingDoc HTML | ||
if: always() | ||
run: livingdoc test-assembly Monai.Deploy.WorkflowManager.WorkflowExecutor.IntegrationTests.dll -t TestExecution.json | ||
working-directory: ./tests/IntegrationTests/WorkflowExecutor.IntegrationTests/bin/Debug/net6.0 | ||
working-directory: ./tests/IntegrationTests/WorkflowExecutor.IntegrationTests/bin/Debug/net8.0 | ||
|
||
- name: Publish report | ||
if: always() | ||
uses: actions/[email protected] | ||
with: | ||
name: WorkflowExecutorIntegrationTestReport | ||
path: ./tests/IntegrationTests/WorkflowExecutor.IntegrationTests/bin/Debug/net6.0/LivingDoc.html | ||
path: ./tests/IntegrationTests/WorkflowExecutor.IntegrationTests/bin/Debug/net8.0/LivingDoc.html | ||
|
||
task-manager-integration-tests: | ||
runs-on: ubuntu-latest | ||
|
@@ -212,19 +212,25 @@ jobs: | |
- name: Generate LivingDoc HTML | ||
if: always() | ||
run: livingdoc test-assembly Monai.Deploy.WorkflowManager.TaskManager.IntegrationTests.dll -t TestExecution.json | ||
working-directory: ./tests/IntegrationTests/TaskManager.IntegrationTests/bin/Debug/net6.0 | ||
working-directory: ./tests/IntegrationTests/TaskManager.IntegrationTests/bin/Debug/net8.0 | ||
|
||
- name: Publish report | ||
if: always() | ||
uses: actions/[email protected] | ||
with: | ||
name: TaskManagerIntegrationTestReport | ||
path: ./tests/IntegrationTests/TaskManager.IntegrationTests/bin/Debug/net6.0/LivingDoc.html | ||
path: ./tests/IntegrationTests/TaskManager.IntegrationTests/bin/Debug/net8.0/LivingDoc.html | ||
|
||
sonarscanner: | ||
runs-on: ubuntu-latest | ||
needs: unit-tests-and-codecov | ||
steps: | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: 'zulu' # Alternative distribution options are available. | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.