Skip to content

Commit 8ecd98a

Browse files
committed
Run tests on multiple OS
1 parent e561a6e commit 8ecd98a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,21 @@ on:
99
jobs:
1010
build:
1111

12-
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, windows-latest, macos-latest]
15+
16+
runs-on: ${{ matrix.os }}
1317

1418
steps:
15-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v5
1620
- name: Setup .NET
17-
uses: actions/setup-dotnet@v2
21+
uses: actions/setup-dotnet@v5
1822
with:
1923
dotnet-version: 9.0.x
2024
- name: Restore dependencies
2125
run: dotnet restore
2226
- name: Build
2327
run: dotnet build --no-restore -c Release
2428
- name: Test
25-
run: dotnet test --no-build --verbosity normal -c Release -f net9.0
29+
run: dotnet test --no-build --verbosity normal -c Release

0 commit comments

Comments
 (0)