Skip to content

Commit 5eaa33f

Browse files
committed
Simplify github actions to use less runners
1 parent 72074df commit 5eaa33f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ jobs:
1010
strategy:
1111
matrix:
1212
os: [windows-latest, ubuntu-latest, macOS-latest]
13-
framework: [net9.0, net8.0]
14-
include:
15-
- os: windows-latest
16-
framework: net462
1713

1814
runs-on: ${{ matrix.os }}
1915
steps:
@@ -30,8 +26,15 @@ jobs:
3026
- name: Build
3127
run: dotnet build
3228

33-
- name: Test
34-
run: dotnet test -f ${{ matrix.framework }} --no-build --no-restore
29+
- name: .NET Framework Tests
30+
if: matrix.os == 'windows-latest'
31+
run: dotnet test -f net462 --no-build --no-restore
32+
33+
- name: .NET 8 Tests
34+
run: dotnet test -f net8.0 --no-build --no-restore
35+
36+
- name: .NET 9 Tests
37+
run: dotnet test -f net9.0 --no-build --no-restore
3538

3639
format-verify:
3740
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)