Skip to content

Commit 56226f5

Browse files
authored
Update dotnet.yml: Setup .NET with multiple SDK versions
1 parent 2e264ca commit 56226f5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/dotnet.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,19 @@ on:
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
dotnet-version: [ '8.0.x', '9.0.x' ]
1618

1719
steps:
1820
- uses: actions/checkout@v4
19-
- name: Setup .NET
20-
uses: actions/setup-dotnet@v4
21+
- name: Setup .NET ${{ matrix.dotnet-version }}
22+
uses: actions/setup-dotnet@v3
2123
with:
22-
dotnet-version: 9.0.x
24+
dotnet-version: ${{ matrix.dotnet-version }}
25+
- name: Display dotnet version
26+
run: dotnet --version
2327
- name: Restore dependencies
2428
run: dotnet restore ./Ocelot.sln
2529
- name: Build

0 commit comments

Comments
 (0)