ci: skip unaffected validation jobs#6
Merged
Conversation
Classify changed paths before running CI so Rust and TUI jobs only execute when their inputs change, while workflow changes still exercise both job families. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4c127c9c-ac00-4a90-be0f-4357720a6a8d
Run Node packaging tests when npm or Homebrew packaging inputs change, keeping packaging-only PRs out of unrelated Rust/TUI jobs while still validating release distribution helpers. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4c127c9c-ac00-4a90-be0f-4357720a6a8d
Prefer the zip command for Windows archive fixtures so Linux CI exercises the same unzip path as production packaging tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4c127c9c-ac00-4a90-be0f-4357720a6a8d
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CI now classifies changed paths before running expensive jobs, so docs- or skills-only PRs no longer spend time on Rust, TUI, or packaging validation that cannot be affected.
Rust checks still run for backend/workspace files such as
src/,tests/,Cargo.toml,Cargo.lock,xtask/, scripts, and the CI workflow itself. TUI checks run fortui/, shared Cargo/xtask/script inputs, and the CI workflow itself.Packaging changes now get their own Node test job for npm and Homebrew helpers instead of being skipped or forcing unrelated Rust/TUI jobs.
Validation
ruby -e "require 'yaml'; YAML.load_file('.github/workflows/ci.yml')"git diff --check -- .github/workflows/ci.ymlnode --testinpackaging/npm/kqodenode --testinpackaging/npm/scriptsnode --testinpackaging/homebrew