From 8643e170c031087623d8debeca596dfe28266750 Mon Sep 17 00:00:00 2001 From: Robin <7276999+Kaffeetasse@users.noreply.github.com> Date: Wed, 3 Dec 2025 20:31:06 +0100 Subject: [PATCH 1/2] fix: align Npgsql package versions with target frameworks --- ...mmunity.Microsoft.Extensions.Caching.PostgreSql.csproj | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Extensions.Caching.PostgreSql/Community.Microsoft.Extensions.Caching.PostgreSql.csproj b/Extensions.Caching.PostgreSql/Community.Microsoft.Extensions.Caching.PostgreSql.csproj index 28d14b7..49d68d1 100644 --- a/Extensions.Caching.PostgreSql/Community.Microsoft.Extensions.Caching.PostgreSql.csproj +++ b/Extensions.Caching.PostgreSql/Community.Microsoft.Extensions.Caching.PostgreSql.csproj @@ -23,17 +23,13 @@ - - - - - + @@ -41,6 +37,7 @@ + @@ -48,6 +45,7 @@ + From f54423443dd60cf05a859183a540d7b545d5f0ef Mon Sep 17 00:00:00 2001 From: Ashley Marques Date: Fri, 5 Dec 2025 08:45:40 -0300 Subject: [PATCH 2/2] update actions workflow and project files for multi-target .NET support - Updated the actions workflow to utilize a matrix strategy for .NET versions. - Modified the CachingTest to support multiple target frameworks - Updated Npgsql package versions to latest of each target. --- .github/workflows/dotnet-test.yml | 15 ++++++++------- CachingTest/CachingTest.csproj | 2 +- ...Microsoft.Extensions.Caching.PostgreSql.csproj | 4 ++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dotnet-test.yml b/.github/workflows/dotnet-test.yml index 0c2943c..3165ea1 100644 --- a/.github/workflows/dotnet-test.yml +++ b/.github/workflows/dotnet-test.yml @@ -14,6 +14,10 @@ on: jobs: build-test-coverage: runs-on: ubuntu-latest + strategy: + matrix: + dotnet-version: ["8.0.x", "9.0.x", "10.0.x"] + fail-fast: false steps: - name: Checkout code uses: actions/checkout@v4 @@ -26,10 +30,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: | - 8.0.x - 9.0.x - 10.0.x + dotnet-version: ${{ matrix.dotnet-version }} - name: Restore dependencies run: dotnet restore @@ -58,7 +59,7 @@ jobs: - name: Upload Test Results uses: actions/upload-artifact@v4 with: - name: test-results + name: test-results-${{ matrix.dotnet-version }} path: ./TestResults/*.trx - name: Publish Test Results @@ -82,7 +83,7 @@ jobs: uses: actions/upload-artifact@v4 if: env.COVERAGE_FILE_PATH != '' with: - name: coverage-report + name: coverage-report-${{ matrix.dotnet-version }} path: ${{ env.COVERAGE_FILE_PATH }} - name: Generate Coverage Report @@ -98,7 +99,7 @@ jobs: uses: actions/upload-artifact@v4 if: env.COVERAGE_FILE_PATH != '' with: - name: html-coverage-report + name: html-coverage-report-${{ matrix.dotnet-version }} path: ./TestResults/coverage/report - name: Display Coverage Summary diff --git a/CachingTest/CachingTest.csproj b/CachingTest/CachingTest.csproj index 9235261..cf22051 100644 --- a/CachingTest/CachingTest.csproj +++ b/CachingTest/CachingTest.csproj @@ -1,7 +1,7 @@  - net10.0 + net8.0;net9.0;net10.0 enable enable false diff --git a/Extensions.Caching.PostgreSql/Community.Microsoft.Extensions.Caching.PostgreSql.csproj b/Extensions.Caching.PostgreSql/Community.Microsoft.Extensions.Caching.PostgreSql.csproj index 49d68d1..03925ea 100644 --- a/Extensions.Caching.PostgreSql/Community.Microsoft.Extensions.Caching.PostgreSql.csproj +++ b/Extensions.Caching.PostgreSql/Community.Microsoft.Extensions.Caching.PostgreSql.csproj @@ -29,7 +29,7 @@ - + @@ -37,7 +37,7 @@ - +