Skip to content

Commit 1b2e1d4

Browse files
committed
Simplify github actions
1 parent 370fdb0 commit 1b2e1d4

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,8 @@ jobs:
2727
- name: Build
2828
run: dotnet build
2929

30-
- name: .NET Framework Tests
31-
if: matrix.os == 'windows-latest'
32-
run: dotnet test -f net462 --no-build --no-restore --no-progress
33-
34-
- name: .NET 8 Tests
35-
run: dotnet test -f net8.0 --no-build --no-restore --no-progress
36-
37-
- name: .NET 9 Tests
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
30+
- name: Tests
31+
run: dotnet test -no-build --no-restore --no-progress
4232

4333
format-verify:
4434
runs-on: ubuntu-latest

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFrameworks>net10.0;net9.0;net8.0;net462</TargetFrameworks>
55
<OutputType>Exe</OutputType>
66
<EnableNUnitRunner>true</EnableNUnitRunner>
7-
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
7+
<IsTestingPlatformApplication Condition=" '$(TargetFramework)' == 'net462' and '$(OS)' != 'Windows_NT' ">false</IsTestingPlatformApplication>
88
</PropertyGroup>
99

1010
<ItemGroup>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFrameworks>net10.0;net9.0;net8.0;net462</TargetFrameworks>
55
<OutputType>Exe</OutputType>
66
<EnableNUnitRunner>true</EnableNUnitRunner>
7-
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
7+
<IsTestingPlatformApplication Condition=" '$(TargetFramework)' == 'net462' and '$(OS)' != 'Windows_NT' ">false</IsTestingPlatformApplication>
88
</PropertyGroup>
99

1010
<ItemGroup>

0 commit comments

Comments
 (0)