Skip to content

Commit bcc1312

Browse files
authored
Update dotnet.yml
1 parent 8ff687e commit bcc1312

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/dotnet.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,23 @@ jobs:
1313
build:
1414

1515
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
dotnet-version: [ '5.0.x', '6.0.x', '7.0.x', '8.0.x', '9.0.x' ] # Add/remove versions as needed
1619

1720
steps:
1821
- uses: actions/checkout@v4
22+
1923
- name: Setup .NET
2024
uses: actions/setup-dotnet@v4
2125
with:
22-
dotnet-version: 8.0.x
26+
dotnet-version: ${{ matrix.dotnet-version }}
27+
2328
- name: Restore dependencies
2429
run: dotnet restore
30+
2531
- name: Build
26-
run: dotnet build --no-restore
32+
run: dotnet build --configuration Release --no-restore
33+
2734
- name: Test
2835
run: dotnet test --no-build --verbosity normal

0 commit comments

Comments
 (0)