fix(ci): satisfy rustfmt and use binary-crate test invocation #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/ci-checks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
Checkworkflow (fmt + clippy + build + tests) has been failing on every push since it landed in #9. Two independent root causes:cargo fmt --checkrejects several long single-line expressions inbuild.rs,src/main.rs, andsrc/video/convert.rs. Runningcargo fmtover the tree settles the diff so the step exits clean. Cargo.lock incidentally rewrites the[[package]] monkeyentry into its correct alphabetical slot when cargo touches the file, so it's included.Unit testsstep rancargo test --lib, but monkey is a binary-only crate with no library target, so cargo errored withno library targets found in package monkey. The unit tests live in#[cfg(test)]modules undersrc/, whichcargo testruns against the bin target. The ffmpeg-dependent integration tests intests/video_convert.rsare#[ignore]d per CLAUDE.md, so dropping--libruns the unit tests without needing ffmpeg on the runner. The matching change is applied to thepre-commitrecipe injustfilesojust pre-commitmatches CI.Locally,
cargo fmt --check && cargo clippy --all-targets -- -D warnings && cargo build --all-targets && cargo testall pass on this branch.Test plan
Checkworkflow for this branch passes all four steps (fmt, clippy, build, test).