Skip to content

[Fix::ci] check formatting across the Rust workspace - #131

Merged
mistricky merged 1 commit into
mainfrom
fix/check-workspace-formatting
Oct 8, 2026
Merged

mistricky merged 1 commit into
mainfrom
fix/check-workspace-formatting

Conversation

@mistricky

Copy link
Copy Markdown
Member

Problem

The code-style job runs rustfmt --check without any filenames. On a GitHub Actions runner with empty stdin, that exits successfully without inspecting the Rust workspace. Consequently, a green code-style job does not establish that the repository is formatted.

This existing issue was identified while reviewing #128 and #129; it is already present on main and is independent of the proposed Actions version updates.

Change

  • Run cargo fmt --all -- --check in the code-style job so every workspace member is checked.
  • Remove the obsolete commented-out alternative command.
  • Keep Actions versions, triggers, permissions, and Rust source unchanged.

Validation

  • Isolated Cargo-crate regression probe: malformed Rust passes the old no-files command (exit 0), fails the replacement (exit 1), and passes the replacement after formatting (exit 0).
  • cargo fmt --all -- --check on the current main workspace: passed.
  • git diff --check: passed.
  • YAML diagnostics after editing the workflow: passed.
  • cargo test --workspace --all-features --locked: the four workspace unit-test binaries passed (0 tests on main); the existing core/src/lib.rs:7 doctest failed because its sample omits CodeSnap, CodeBuilder, and WatermarkBuilder imports.
  • cargo clippy --all-targets --all-features --locked -- -D warnings: failed with 37 pre-existing core diagnostics (including unused imports, needless references, and elided-lifetime warnings promoted to errors).

The Rust source and Cargo manifests are byte-for-byte unchanged relative to main 3f6282fe16601125b72e07d7de5270bd8690a37b; these baseline failures are reported rather than hidden or expanded into unrelated fixes.

No merge or release is part of this PR.

@mistricky
mistricky merged commit 1df7601 into main Oct 8, 2026
2 checks passed
@mistricky
mistricky deleted the fix/check-workspace-formatting branch October 8, 2026 07:07
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.

1 participant