Skip to content

ci: generalise composite action and use it from test matrix - #2486

Merged
max-sixty merged 2 commits into
mainfrom
affected-design
Apr 30, 2026
Merged

max-sixty merged 2 commits into
mainfrom
affected-design

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Summary

Follow-up to #2483. The composite action installed cargo-affected and llvm-tools, which the regular test (linux/macos/windows) matrix doesn't need. Lift only the always-shared subset (cargo-insta, cargo-nextest, rust-cache, OS-conditional shells, nushell) into test-setup, and have the affected-* jobs add cargo-affected + llvm-tools inline.

The test matrix now uses the action too: ~50 lines of inline setup collapse to one uses: line. Pinned tool versions (cargo-insta, cargo-nextest, nushell) serve all four callers from one place.

OS branching that was already inline in test-matrix moves into the action — same runner.os conditionals, just relocated.

Drops the Windows-only informational echo "Using Git Bash for Windows tests" step (was a no-op).

Test plan

  • pre-commit run passes on changed files
  • test (linux/macos/windows) still install the same toolchain
  • affected tests (linux, advisory) still installs cargo-affected + llvm-tools
  • collect affected coverage (gated to push-to-main) still works

🤖 Generated with Claude Code

The composite action installed cargo-affected and llvm-tools that the
regular test matrix doesn't need. Lift the always-shared subset
(cargo-insta, cargo-nextest, rust-cache, OS-conditional shells, nushell)
into `test-setup`, and have the affected-* jobs add cargo-affected and
llvm-tools inline.

Test matrix replaces ~50 lines of inline setup with one `uses:`. Pinned
tool versions now serve all four callers from a single place. Drop the
Windows informational echo step (was a no-op comment).

Co-Authored-By: Claude <[email protected]>
`cargo affected run` only queries the DB and runs nextest with an `-E`
filter — coverage extraction (and the llvm-cov / llvm-profdata it needs)
only happens during `collect`.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit a1de9c7 into main Apr 30, 2026
25 checks passed
@max-sixty
max-sixty deleted the affected-design branch April 30, 2026 03:00
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.

2 participants