From bad7c1f3435c81ddfc50ea180708d1a0e0671f4f Mon Sep 17 00:00:00 2001 From: Adam Simon Date: Wed, 22 Jan 2025 17:00:18 +0100 Subject: [PATCH] Run tests on .NET 9 --- .github/workflows/dotnet-sdk-ci.yml | 7 ++++--- src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dotnet-sdk-ci.yml b/.github/workflows/dotnet-sdk-ci.yml index e2682939..a3211364 100644 --- a/.github/workflows/dotnet-sdk-ci.yml +++ b/.github/workflows/dotnet-sdk-ci.yml @@ -44,7 +44,8 @@ jobs: dotnet-version: [ {rt: "3.1.x", sdk: "3.1.100", tfm: netcoreapp3.1}, {rt: "6.0.x", sdk: "6.0.100", tfm: net6.0}, - {rt: "8.0.x", sdk: "8.0.100", tfm: net8.0} + {rt: "8.0.x", sdk: "8.0.100", tfm: net8.0}, + {rt: "9.0.x", sdk: "9.0.100", tfm: net9.0} ] os: [ubuntu-latest, windows-latest, macOS-latest] exclude: @@ -58,9 +59,9 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v4 with: - dotnet-version: | + dotnet-version: ${{ matrix.dotnet-version.rt }} - 8.0.x + 9.0.x - name: Build run: | dotnet build src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj -c Release -f ${{ matrix.dotnet-version.tfm }} diff --git a/src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj b/src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj index e545be06..4c22fcec 100644 --- a/src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj +++ b/src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj @@ -1,7 +1,7 @@ - net45;net461;netcoreapp3.1;net5.0;net6.0;net8.0 + net45;net461;netcoreapp3.1;net5.0;net6.0;net8.0;net9.0 false ConfigCatClientTests true @@ -25,13 +25,13 @@ - + + so we enable v3.x on the latest LTS version (.NET 8) only. -->