File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Build and Test
22on : [push, pull_request]
33jobs :
4+ Whitespace_Check :
5+ name : Whitespace Check
6+ runs-on : ubuntu-latest
7+ steps :
8+ - name : Checkout
9+ uses : actions/checkout@v6
10+ - name : Setup .NET
11+ uses : actions/setup-dotnet@v5
12+ with :
13+ dotnet-version : 10
14+ dotnet-quality : ga
15+ - name : Restore Dependencies
16+ run : dotnet restore
17+ - name : Whitespace Check
18+ run : dotnet format whitespace --verify-no-changes --no-restore
419 Build_and_Test :
520 strategy :
621 matrix :
1833 dotnet-quality : ga
1934 - name : Restore Dependencies
2035 run : dotnet restore
21- # `dotnet format` runs the full formatter pipeline (whitespace + style + analyzers)
22- # which catches a few IDE-prefixed rules, notably IDE0055 (Fix formatting), that
23- # `dotnet build` skips even with EnforceCodeStyleInBuild=true. This step keeps CI
24- # parity with what Visual Studio's IDE-side analysis flags.
25- - name : Format Check
26- run : dotnet format --verify-no-changes --no-restore
2736 - name : Build
28- run : dotnet build --configuration ${{ matrix.configuration }} --no-restore -p:EnforceCodeStyleInBuild=false
37+ run : dotnet build --configuration ${{ matrix.configuration }} --no-restore
2938 - name : Test
3039 run : dotnet test --configuration ${{ matrix.configuration }} --no-build --nologo
You can’t perform that action at this time.
0 commit comments