You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci(workflow): optimise CI runs using path filtering
Previously, the CI workflow ran all Rust checks (fmt, clippy, test, build)
on every push or pull request to the main branch, regardless of which
files were changed. This led to unnecessary resource consumption when
only documentation or CI configuration files were modified.
This change introduces path filtering using the `tj-actions/changed-files`
action. The workflow now identifies changes to Rust source files (`src/`,
`tests/`) or manifest files (`Cargo.toml`, `Cargo.lock`).
The `cargo fmt`, `cargo clippy`, `cargo test`, and `cargo build` steps
are now configured with `if` conditions to run only when relevant Rust
code or manifest files have been modified in the push or pull request.
This significantly speeds up CI runs for non-code changes.
Requires `pull-requests: read` permission for `tj-actions/changed-files`
and `fetch-depth: 0` during checkout to allow the action to compare
file changes accurately.
0 commit comments