From 4bc236d2f7cd40af0e02fdfb3c75f3f107df0326 Mon Sep 17 00:00:00 2001 From: Lee Campbell Date: Wed, 4 Mar 2026 12:13:54 +0800 Subject: [PATCH] feat(#117): add dotnet format check to CI pipeline Insert `dotnet format --verify-no-changes --verbosity diagnostic` step between `dotnet restore` and `dotnet build` so PRs that violate .editorconfig formatting rules fail fast with clear diagnostic output. Stacked on #152 which provides the nullable warning fixes needed for the format check to pass. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25eda9e..27d9c43 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,8 @@ jobs: cache-dependency-path: '**/*.csproj' - run: dotnet restore + - name: Check code formatting + run: dotnet format --verify-no-changes --verbosity diagnostic - run: dotnet build -c Release --no-restore /p:Version=${{ env.SEMVER }} - run: dotnet test ./HdrHistogram.UnitTests/HdrHistogram.UnitTests.csproj --no-build -c Release - run: dotnet pack ./HdrHistogram/HdrHistogram.csproj -c Release --no-build --include-symbols --no-restore /p:Version=${{ env.SEMVER }}