Skip to content

Commit a2d7938

Browse files
authored
Update DotNET-build.yml
1 parent a249232 commit a2d7938

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/DotNET-build.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,22 @@ on:
2828

2929
jobs:
3030
ubuntu-latest:
31-
name: ubuntu-20.04
32-
runs-on: ubuntu-20.04
33-
steps:
31+
name: ubuntu-latest
32+
runs-on: ubuntu-latest
33+
strategy:
34+
matrix:
35+
dotnet-version: [ '6.0.x', '7.0.x', '8.0.x']
36+
37+
steps:
38+
- uses: actions/checkout@v4
39+
- name: Setup dotnet ${{ matrix.dotnet-version }}
40+
uses: actions/setup-dotnet@v4
41+
with:
42+
dotnet-version: ${{ matrix.dotnet-version }}
43+
# You can test your matrix by printing the current dotnet version
44+
- name: Display dotnet version
45+
run: dotnet --version
46+
3447
- uses: actions/setup-java@v4
3548
with:
3649
distribution: 'temurin'

0 commit comments

Comments
 (0)