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 28d14b7..03925ea 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 @@ +