Skip to content

ci: run fmt, clippy, test, and coverage across the workspace#27

Merged
meymchen merged 1 commit into
mainfrom
ci/workspace-23
Jun 22, 2026
Merged

ci: run fmt, clippy, test, and coverage across the workspace#27
meymchen merged 1 commit into
mainfrom
ci/workspace-23

Conversation

@meymchen

Copy link
Copy Markdown
Owner

Summary

Updates .github/workflows/ci.yml so CI continues to build, lint, test, and report coverage now that the repository is a Cargo workspace (#20).

Adds --workspace to the clippy, test, and coverage invocations so every member crate (lspf, lspf-hello) is covered, not just the package in the current directory. fmt already uses --all, which spans the workspace.

Acceptance Criteria

  • CI fmt job passes with workspace formatting (cargo fmt --all already covers the workspace).
  • CI clippy job passes with workspace targets and features (cargo clippy --workspace --all-targets --all-features).
  • CI test job runs cargo test --workspace --all-features --all-targets and passes (plus --doc).
  • CI coverage job collects coverage across the workspace (cargo llvm-cov --workspace ...) and uploads the report.
  • RUSTFLAGS: -D warnings behavior kept.
  • Coverage report paths (target/coverage/...) are explicit output dirs, unaffected by the workspace layout.

Verification

Ran locally with RUSTFLAGS="-D warnings":

  • cargo clippy --workspace --all-targets --all-features -- -D warnings — clean
  • cargo test --workspace --all-features --all-targets — all pass
  • cargo test --workspace --all-features --doc — pass

Closes #23

🤖 Generated with Claude Code

After the Cargo workspace migration (#20), add --workspace to the
clippy, test, and coverage invocations so every member crate is built,
linted, tested, and measured for coverage — not just the package in the
current directory. fmt already uses --all, which covers the workspace.

Verified locally with RUSTFLAGS="-D warnings":
- cargo clippy --workspace --all-targets --all-features -- -D warnings
- cargo test --workspace --all-features --all-targets
- cargo test --workspace --all-features --doc

Closes #23

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@meymchen meymchen merged commit 1a02420 into main Jun 22, 2026
4 checks passed
@meymchen meymchen deleted the ci/workspace-23 branch June 22, 2026 16:54
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.

[VS Code/Zed MVP] Update CI workflow for workspace

1 participant