Skip to content

Commit dc3beba

Browse files
committed
Run on windows, linux and mac
1 parent 161f50f commit dc3beba

1 file changed

Lines changed: 18 additions & 14 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,28 @@ name: .NET
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: ["*"]
99
pull_request:
10-
branches: [ "main" ]
10+
branches: ["*"]
1111

1212
jobs:
1313
build:
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, windows-latest, macos-latest]
17+
configuration: [Debug, Release]
1418

15-
runs-on: ubuntu-latest
19+
runs-on: ${{ matrix.os }}
1620

1721
steps:
18-
- uses: actions/checkout@v3
19-
- name: Setup .NET
20-
uses: actions/setup-dotnet@v3
21-
with:
22-
dotnet-version: 6.0.x
23-
- name: Restore dependencies
24-
run: dotnet restore
25-
- name: Build
26-
run: dotnet build --no-restore
27-
- name: Test
28-
run: dotnet test --no-build --verbosity normal
22+
- uses: actions/checkout@v4
23+
- name: Setup .NET
24+
uses: actions/setup-dotnet@v4
25+
with:
26+
dotnet-version: 9.0.x
27+
- name: Restore dependencies
28+
run: dotnet restore
29+
- name: Build
30+
run: dotnet build --no-restore
31+
- name: Test
32+
run: dotnet test --no-build --verbosity normal

0 commit comments

Comments
 (0)