File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: Build and Test
22on : [push, pull_request]
33jobs :
44 Build_and_Test :
5+ strategy :
6+ matrix :
7+ # Debug and Release might be different due to conditional compilation, so validate both.
8+ configuration : [Debug, Release]
9+ name : Build and Test (${{ matrix.configuration }})
510 runs-on : ubuntu-latest
611 steps :
712 - name : Checkout
1217 dotnet-version : 10.0.x
1318 - name : Restore Dependencies
1419 run : dotnet restore
15- # Debug and Release might be different due to conditional compilation, so validate both.
16- - name : Build (Debug)
17- run : dotnet build --configuration Debug --no-restore
18- - name : Build (Release)
19- run : dotnet build --configuration Release --no-restore
20- - name : Test (Debug)
21- run : dotnet test --configuration Debug --no-build --nologo
22- - name : Test (Release)
23- run : dotnet test --configuration Release --no-build --nologo
20+ - name : Build
21+ run : dotnet build --configuration ${{ matrix.configuration }} --no-restore
22+ - name : Test
23+ run : dotnet test --configuration ${{ matrix.configuration }} --no-build --nologo
You can’t perform that action at this time.
0 commit comments