Skip to content

ci(#117): add dotnet format check to CI pipeline#154

Merged
LeeCampbell merged 1 commit intoHdrHistogram:mainfrom
LeeCampbell:feat/117-ci-format-check
Mar 4, 2026
Merged

ci(#117): add dotnet format check to CI pipeline#154
LeeCampbell merged 1 commit intoHdrHistogram:mainfrom
LeeCampbell:feat/117-ci-format-check

Conversation

@LeeCampbell
Copy link
Collaborator

Summary

  • Adds a dotnet format --verify-no-changes --verbosity diagnostic step to the CI workflow between dotnet restore and dotnet build.
  • PRs that violate .editorconfig formatting rules will fail fast with clear diagnostic output naming the offending files.

Dependency

This PR is stacked on #152 which provides the nullable warning fixes needed for the format check to pass cleanly.
Merge #152 first, then this PR.

Changes

  • .github/workflows/ci.yml — single new step inserted after restore, before build.

Test plan

  • Confirm dotnet format --verify-no-changes step appears in the GitHub Actions log.
  • Confirm CI passes (after feat(#117): Add dotnet format check to CI pipeline #152 nullable fixes are merged).
  • Optionally introduce a deliberate formatting violation on a throwaway branch to verify the step fails with diagnostic output.

Closes #117

🤖 Generated with Claude Code

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 HdrHistogram#152 which provides the nullable warning fixes needed
for the format check to pass.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@LeeCampbell LeeCampbell force-pushed the feat/117-ci-format-check branch from 26a3bff to 4bc236d Compare March 4, 2026 04:20
@LeeCampbell LeeCampbell merged commit 837f6b4 into HdrHistogram:main Mar 4, 2026
2 checks passed
@LeeCampbell LeeCampbell deleted the feat/117-ci-format-check branch March 4, 2026 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add dotnet format check to CI pipeline

1 participant