Skip to content

Commit b266a87

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

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<OutputType>Exe</OutputType>
66
<EnableNUnitRunner>true</EnableNUnitRunner>
77
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
8+
<IsTestingPlatformApplication Condition=" '$(TargetFramework)' == 'net462' and '$(OS)' != 'Windows_NT' ">false</IsTestingPlatformApplication>
89
</PropertyGroup>
910

1011
<ItemGroup>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<OutputType>Exe</OutputType>
66
<EnableNUnitRunner>true</EnableNUnitRunner>
77
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
8+
<IsTestingPlatformApplication Condition=" '$(TargetFramework)' == 'net462' and '$(OS)' != 'Windows_NT' ">false</IsTestingPlatformApplication>
89
</PropertyGroup>
910

1011
<ItemGroup>

0 commit comments

Comments
 (0)