Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 4 additions & 39 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,9 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 3
- package-ecosystem: "nuget"
directory: "/src/NSubstitute"
schedule:
interval: "monthly"
open-pull-requests-limit: 3
groups:
nsubstitute_minor_patch_updates:
update-types:
- "minor"
- "patch"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
- package-ecosystem: "nuget"
directory: "/tests/NSubstitute.Acceptance.Specs"
schedule:
interval: "monthly"
open-pull-requests-limit: 3
groups:
nsubstitute_acceptance_specs_minor_patch_updates:
update-types:
- "minor"
- "patch"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
interval: "weekly"

- package-ecosystem: "nuget"
directory: "/tests/NSubstitute.Benchmarks"
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 3
groups:
nsubstitute_benchmarks_minor_patch_updates:
update-types:
- "minor"
- "patch"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
interval: "weekly"
1 change: 1 addition & 0 deletions .github/workflows/release_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
10.0.x
9.0.x
8.0.x

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 9.0.x
dotnet-version: 10.0.x

- name: Build package
run: dotnet pack src/NSubstitute/NSubstitute.csproj -o bin -p:CI=true
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
10.0.x
9.0.x
8.0.x

Expand All @@ -28,13 +29,16 @@ jobs:

- name: .NET Framework Tests
if: matrix.os == 'windows-latest'
run: dotnet test -f net462 --no-build --no-restore
run: dotnet test -f net462 --no-build --no-restore --no-progress

- name: .NET 8 Tests
run: dotnet test -f net8.0 --no-build --no-restore
run: dotnet test -f net8.0 --no-build --no-restore --no-progress

- name: .NET 9 Tests
run: dotnet test -f net9.0 --no-build --no-restore
run: dotnet test -f net9.0 --no-build --no-restore --no-progress

- name: .NET 10 Tests
run: dotnet test -f net10.0 --no-build --no-restore --no-progress

format-verify:
runs-on: ubuntu-latest
Expand All @@ -45,7 +49,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 9.0.x
dotnet-version: 10.0.x

- name: Format
run: dotnet format --verify-no-changes
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* [NEW] Added NuGet Package README file.
* [UPDATE] Make public api and tests the same for all TFMs
* [UPDATE] Migrate documentation samples to NUnit4
* [NEW] Added .NET 10 to test matrix

### 5.3.0 (October 2024)

Expand Down
5 changes: 5 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"test": {
"runner": "Microsoft.Testing.Platform"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net9.0;net8.0;net462</TargetFrameworks>
<TargetFrameworks>net10.0;net9.0;net8.0;net462</TargetFrameworks>
<OutputType>Exe</OutputType>
<EnableNUnitRunner>true</EnableNUnitRunner>
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
Expand All @@ -10,7 +10,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0" />
<PackageReference Include="NUnit" Version="4.4.0" />
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
<PackageReference Include="NUnit3TestAdapter" Version="5.2.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
Expand Down
2 changes: 1 addition & 1 deletion tests/NSubstitute.Benchmarks/NSubstitute.Benchmarks.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks>net10.0</TargetFrameworks>
<OutputType>Exe</OutputType>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net9.0;net8.0;net462</TargetFrameworks>
<TargetFrameworks>net10.0;net9.0;net8.0;net462</TargetFrameworks>
<OutputType>Exe</OutputType>
<EnableNUnitRunner>true</EnableNUnitRunner>
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NUnit" Version="4.4.0" />
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
<PackageReference Include="NUnit3TestAdapter" Version="5.2.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading