Skip to content

Commit

Permalink
Run tests on .NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
adams85 committed Jan 22, 2025
1 parent 2df2c6b commit a8aa23e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/dotnet-sdk-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -60,7 +61,7 @@ jobs:
with:
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 }}
Expand Down
6 changes: 3 additions & 3 deletions src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net45;net461;netcoreapp3.1;net5.0;net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>net45;net461;netcoreapp3.1;net5.0;net6.0;net8.0;net9.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<AssemblyName>ConfigCatClientTests</AssemblyName>
<SignAssembly>true</SignAssembly>
Expand All @@ -25,13 +25,13 @@
</ItemGroup>
</When>

<When Condition="'$(TargetFramework)' == 'net6.0'">
<When Condition="'$(TargetFramework)' == 'net8.0'">
<ItemGroup>
<!-- DynamicData matrix tests won't show up in VS 2022 using MSTest.TestAdapter v2.2.10.
It seems we'd need v3.x to make that work. But v3.x supports .NET 4.6.2+ only...
However, as test discovery may be pretty slow because of the large number of test cases,
it's usually sufficient to see separate test results for only one of the target frameworks,
so we enable v3.x on .NET 6 only. -->
so we enable v3.x on the latest LTS version (.NET 8) only. -->
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
</ItemGroup>
Expand Down

0 comments on commit a8aa23e

Please sign in to comment.