Skip to content

Commit ac4ae20

Browse files
authored
Add .NET 10 to test matrix (#913)
* Add .NET 10 to test matrix * Update changelog * Simplify dependabot config
1 parent 9817c96 commit ac4ae20

File tree

9 files changed

+24
-48
lines changed

9 files changed

+24
-48
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -9,44 +9,9 @@ updates:
99
- package-ecosystem: "github-actions"
1010
directory: "/"
1111
schedule:
12-
interval: "monthly"
13-
open-pull-requests-limit: 3
14-
- package-ecosystem: "nuget"
15-
directory: "/src/NSubstitute"
16-
schedule:
17-
interval: "monthly"
18-
open-pull-requests-limit: 3
19-
groups:
20-
nsubstitute_minor_patch_updates:
21-
update-types:
22-
- "minor"
23-
- "patch"
24-
ignore:
25-
- dependency-name: "*"
26-
update-types: ["version-update:semver-major"]
27-
- package-ecosystem: "nuget"
28-
directory: "/tests/NSubstitute.Acceptance.Specs"
29-
schedule:
30-
interval: "monthly"
31-
open-pull-requests-limit: 3
32-
groups:
33-
nsubstitute_acceptance_specs_minor_patch_updates:
34-
update-types:
35-
- "minor"
36-
- "patch"
37-
ignore:
38-
- dependency-name: "*"
39-
update-types: ["version-update:semver-major"]
12+
interval: "weekly"
13+
4014
- package-ecosystem: "nuget"
41-
directory: "/tests/NSubstitute.Benchmarks"
15+
directory: "/"
4216
schedule:
43-
interval: "monthly"
44-
open-pull-requests-limit: 3
45-
groups:
46-
nsubstitute_benchmarks_minor_patch_updates:
47-
update-types:
48-
- "minor"
49-
- "patch"
50-
ignore:
51-
- dependency-name: "*"
52-
update-types: ["version-update:semver-major"]
17+
interval: "weekly"

.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

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* [NEW] Added NuGet Package README file.
1414
* [UPDATE] Make public api and tests the same for all TFMs
1515
* [UPDATE] Migrate documentation samples to NUnit4
16+
* [NEW] Added .NET 10 to test matrix
1617

1718
### 5.3.0 (October 2024)
1819

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: 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>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>

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)