From 832df2075c5dd42b6f6406ae788146cde307a535 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 Nov 2024 23:13:56 +0200 Subject: [PATCH] Update to support .NET 9 --- .config/dotnet-tools.json | 2 +- .github/workflows/dotnet.yml | 4 +++- GraphHealthChecks.Tests/GraphHealthChecks.Tests.csproj | 9 +++++---- GraphHealthChecks/GraphHealthChecks.csproj | 8 ++++---- GraphHealthChecks/README.md | 1 + NOTES.md | 10 ++++++++-- README.md | 1 + global.json | 2 +- 8 files changed, 24 insertions(+), 13 deletions(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index a061aac..69f9eeb 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "dotnet-reportgenerator-globaltool": { - "version": "5.3.9", + "version": "5.4.1", "commands": [ "reportgenerator" ], diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 087af0d..0b821fe 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -19,7 +19,9 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: | + 8.0.x + 9.0.x - name: Restore dependencies run: dotnet restore - name: Build diff --git a/GraphHealthChecks.Tests/GraphHealthChecks.Tests.csproj b/GraphHealthChecks.Tests/GraphHealthChecks.Tests.csproj index 0716b7e..1b188a2 100644 --- a/GraphHealthChecks.Tests/GraphHealthChecks.Tests.csproj +++ b/GraphHealthChecks.Tests/GraphHealthChecks.Tests.csproj @@ -1,7 +1,7 @@ - net8.0 + net8.0;net9.0 enable enable false @@ -9,13 +9,14 @@ - - + + - + + all diff --git a/GraphHealthChecks/GraphHealthChecks.csproj b/GraphHealthChecks/GraphHealthChecks.csproj index bfdc58f..1d132b4 100644 --- a/GraphHealthChecks/GraphHealthChecks.csproj +++ b/GraphHealthChecks/GraphHealthChecks.csproj @@ -1,11 +1,11 @@ - net8.0 + net8.0;net9.0 enable true true $(MSBuildProjectName) - 3.0.0 + 3.1.0 Adamos Fiakkas Graph Health Checks for HotChocolate Adamos Fiakkas @@ -21,8 +21,8 @@ - - + + diff --git a/GraphHealthChecks/README.md b/GraphHealthChecks/README.md index d7988f4..a30a4f4 100644 --- a/GraphHealthChecks/README.md +++ b/GraphHealthChecks/README.md @@ -12,6 +12,7 @@ The purpose of this middleware is to provide feedback regarding the health of th | HotChocolate Version | DataAnnotatedModelValidations Version | .NET Version | |----------------------|---------------------------------------|--------------| +| 14.1.0 or higher | 3.1.0 | .NET 8, 9 | | 14.0.0 or higher | 3.0.0 | .NET 8 | ### Past Releases diff --git a/NOTES.md b/NOTES.md index 464f336..2552ad2 100644 --- a/NOTES.md +++ b/NOTES.md @@ -5,17 +5,23 @@ - `dotnet new tool-manifest` - `dotnet tool install dotnet-reportgenerator-globaltool` +## Update + +- `dotnet tool update dotnet-reportgenerator-globaltool` + ## Tests +📝 _The produced coverage.cobertura file is per .NET version ex. `coverage.cobertura.net9.0.xml`_ + - Run: `dotnet test /p:CollectCoverage=true /p:Threshold=80 /p:CoverletOutputFormat=cobertura /p:CoverletOutput='../coverage.cobertura.xml'` -- Report: `dotnet reportgenerator -reports:./coverage.cobertura.xml -targetdir:./TestResults -reporttypes:Html` +- Report: `dotnet reportgenerator -reports:./coverage.cobertura.net9.0.xml -targetdir:./TestResults -reporttypes:Html` In one Go! ```powershell dotnet test /p:CollectCoverage=true /p:Threshold=80 /p:CoverletOutputFormat=cobertura /p:CoverletOutput='../coverage.cobertura.xml' -dotnet reportgenerator -reports:./coverage.cobertura.xml -targetdir:./TestResults -reporttypes:Html +dotnet reportgenerator -reports:./coverage.cobertura.net9.0.xml -targetdir:./TestResults -reporttypes:Html ``` ## Info diff --git a/README.md b/README.md index 8497625..149db4b 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ The purpose of this middleware is to provide feedback regarding the health of th | HotChocolate Version | DataAnnotatedModelValidations Version | .NET Version | |----------------------|---------------------------------------|--------------| +| 14.1.0 or higher | 3.1.0 | .NET 8, 9 | | 14.0.0 or higher | 3.0.0 | .NET 8 | ### Past Releases diff --git a/global.json b/global.json index ae9f38c..cdbb589 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.400", + "version": "9.0.100", "rollForward": "latestFeature" } }