diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0a13f1e..b6b4f14c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,7 @@ jobs: if: "!contains(github.event.head_commit.message, '[skip ci]')" env: + CI: true DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 DOTNET_CLI_TELEMETRY_OPTOUT: 1 DOTNET_NOLOGO: true @@ -16,14 +17,21 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Setup .NET 9 SDK + - name: Setup .NET 10 SDK uses: actions/setup-dotnet@v4 with: - dotnet-version: "9.x" + dotnet-version: "10.x" - - name: Test - run: dotnet test --collect:"XPlat Code Coverage" + - name: Install dotnet-coverage + run: dotnet tool install -g dotnet-coverage + + - name: Test with coverage + run: dotnet-coverage collect --output coverage.cobertura.xml --output-format cobertura "dotnet test" - name: Update codecov if: startsWith(github.repository, 'khellang/') - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v5 + with: + files: coverage.cobertura.xml + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false diff --git a/NuGet.Config b/NuGet.Config index dbf0180d..6bd4065a 100644 --- a/NuGet.Config +++ b/NuGet.Config @@ -3,6 +3,6 @@ - + diff --git a/global.json b/global.json new file mode 100644 index 00000000..1d364c6a --- /dev/null +++ b/global.json @@ -0,0 +1,9 @@ +{ + "sdk": { + "version": "10.0.100", + "rollForward": "latestFeature" + }, + "test": { + "runner": "Microsoft.Testing.Platform" + } +} diff --git a/src/Scrutor/Scrutor.csproj b/src/Scrutor/Scrutor.csproj index b43c51b4..9762aae8 100644 --- a/src/Scrutor/Scrutor.csproj +++ b/src/Scrutor/Scrutor.csproj @@ -3,7 +3,7 @@ Register services using assembly scanning and a fluent API. 6.1.0 Kristian Hellang - net462;netstandard2.0;net8.0 + net462;netstandard2.0;net8.0;net10.0 $(NoWarn);CS1591 latest enable @@ -25,6 +25,9 @@ snupkg 6.0.0.0 + + true + true @@ -35,7 +38,7 @@ - - + + diff --git a/test/Scrutor.Tests/Scrutor.Tests.csproj b/test/Scrutor.Tests/Scrutor.Tests.csproj index 6e958b51..a8e30f66 100644 --- a/test/Scrutor.Tests/Scrutor.Tests.csproj +++ b/test/Scrutor.Tests/Scrutor.Tests.csproj @@ -1,7 +1,9 @@  - net9.0 + net10.0 latest + Exe + true @@ -9,10 +11,9 @@ - - - - - + + + +