Skip to content

Commit bc888ef

Browse files
committed
Add .NET 10 to test matrix
1 parent 9567b02 commit bc888ef

File tree

7 files changed

+20
-10
lines changed

7 files changed

+20
-10
lines changed

.github/workflows/release_documentation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
uses: actions/setup-dotnet@v5
1414
with:
1515
dotnet-version: |
16+
10.0.x
1617
9.0.x
1718
8.0.x
1819

.github/workflows/release_packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup .NET
1313
uses: actions/setup-dotnet@v5
1414
with:
15-
dotnet-version: 9.0.x
15+
dotnet-version: 10.0.x
1616

1717
- name: Build package
1818
run: dotnet pack src/NSubstitute/NSubstitute.csproj -o bin -p:CI=true

.github/workflows/test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
uses: actions/setup-dotnet@v5
2121
with:
2222
dotnet-version: |
23+
10.0.x
2324
9.0.x
2425
8.0.x
2526
@@ -28,13 +29,16 @@ jobs:
2829

2930
- name: .NET Framework Tests
3031
if: matrix.os == 'windows-latest'
31-
run: dotnet test -f net462 --no-build --no-restore
32+
run: dotnet test -f net462 --no-build --no-restore --no-progress
3233

3334
- name: .NET 8 Tests
34-
run: dotnet test -f net8.0 --no-build --no-restore
35+
run: dotnet test -f net8.0 --no-build --no-restore --no-progress
3536

3637
- name: .NET 9 Tests
37-
run: dotnet test -f net9.0 --no-build --no-restore
38+
run: dotnet test -f net9.0 --no-build --no-restore --no-progress
39+
40+
- name: .NET 10 Tests
41+
run: dotnet test -f net10.0 --no-build --no-restore --no-progress
3842

3943
format-verify:
4044
runs-on: ubuntu-latest
@@ -45,7 +49,7 @@ jobs:
4549
- name: Setup .NET
4650
uses: actions/setup-dotnet@v5
4751
with:
48-
dotnet-version: 9.0.x
52+
dotnet-version: 10.0.x
4953

5054
- name: Format
5155
run: dotnet format --verify-no-changes

global.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"test": {
3+
"runner": "Microsoft.Testing.Platform"
4+
}
5+
}

tests/NSubstitute.Acceptance.Specs/NSubstitute.Acceptance.Specs.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net9.0;net8.0;net462</TargetFrameworks>
4+
<TargetFrameworks>net10.0;net9.0;net8.0;net462</TargetFrameworks>
55
<OutputType>Exe</OutputType>
66
<EnableNUnitRunner>true</EnableNUnitRunner>
77
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
@@ -10,7 +10,7 @@
1010
<ItemGroup>
1111
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0" />
1212
<PackageReference Include="NUnit" Version="4.4.0" />
13-
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
13+
<PackageReference Include="NUnit3TestAdapter" Version="5.2.0" />
1414
</ItemGroup>
1515

1616
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">

tests/NSubstitute.Benchmarks/NSubstitute.Benchmarks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0</TargetFrameworks>
4+
<TargetFrameworks>net10.0</TargetFrameworks>
55
<OutputType>Exe</OutputType>
66
</PropertyGroup>
77

tests/NSubstitute.Documentation.Tests/NSubstitute.Documentation.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net9.0;net8.0;net462</TargetFrameworks>
4+
<TargetFrameworks>net10.0;net9.0;net8.0;net462</TargetFrameworks>
55
<OutputType>Exe</OutputType>
66
<EnableNUnitRunner>true</EnableNUnitRunner>
77
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
88
</PropertyGroup>
99

1010
<ItemGroup>
1111
<PackageReference Include="NUnit" Version="4.4.0" />
12-
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
12+
<PackageReference Include="NUnit3TestAdapter" Version="5.2.0" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

0 commit comments

Comments
 (0)