Skip to content

Commit 8257657

Browse files
committed
Run CI on multiple dotnet versions on different os
1 parent 066723e commit 8257657

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,18 @@ on:
99
- main
1010

1111
jobs:
12-
linux:
12+
ci:
13+
strategy:
14+
matrix:
15+
dotnet: ['5.0.x', "6.0.x"]
1316
runs-on: ubuntu-latest
17+
name: CI using dotnet ${{ matrix.dotnet }}
1418
steps:
1519
- uses: actions/checkout@v1
1620
- name: Setup .NET Core
1721
uses: actions/setup-dotnet@v1
1822
with:
19-
dotnet-version: "6.0.x"
20-
- name: Build with dotnet
21-
run: dotnet build --configuration Release
22-
- name: Test with dotnet
23-
run: dotnet test --configuration Release
24-
windows:
25-
runs-on: windows-latest
26-
steps:
27-
- uses: actions/checkout@v1
28-
- name: Setup .NET Core
29-
uses: actions/setup-dotnet@v1
30-
with:
31-
dotnet-version: "6.0.x"
23+
dotnet-version: ${{ matrix.dotnet }}
3224
- name: Build with dotnet
3325
run: dotnet build --configuration Release
3426
- name: Test with dotnet

0 commit comments

Comments
 (0)