Skip to content

Commit e7bb38e

Browse files
author
fabien.menager
committed
Use version matrix for build
1 parent e17ba44 commit e7bb38e

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/dotnet-test.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,22 @@ on:
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
1615

16+
strategy:
17+
matrix:
18+
dotnet-version: [ '8.0.x', '9.0.x' ]
19+
1720
steps:
1821
- uses: actions/checkout@v4
1922

20-
- name: Setup .NET 8.0
23+
- name: Setup .NET ${{ matrix.dotnet-version }}
2124
uses: actions/setup-dotnet@v4
2225
with:
23-
dotnet-version: 8.0.x
26+
dotnet-version: ${{ matrix.dotnet-version }}
2427

25-
- name: Setup .NET 9.0
26-
uses: actions/setup-dotnet@v4
27-
with:
28-
dotnet-version: 9.0.x
28+
- name: Display dotnet version
29+
run: dotnet --version
2930

3031
- name: Restore dependencies
3132
run: dotnet restore

0 commit comments

Comments
 (0)