Repository navigation
CI: run on PRs and main, not on every branch push - #4
Merged
Merged
Conversation
CI still runs fmt --check, clippy -D warnings, build and test on every pull request and on pushes to main. It no longer runs a second time for each same-repo PR branch push, or for v* tag pushes, which release.yml already gates with its own cargo test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
CI already runs
cargo fmt --check,cargo clippy --all-targets --all-features -- -D warnings,cargo buildandcargo test. That stays the same. This PR only changes when it runs.on: push:had no branch filter, so CI ran twice for every PR from a branch in this repo (once forpushand once forpull_request, as seen on the open Dependabot PRs). It also ran for everyv*tag push. CI now runs on every pull request and on pushes tomain.release.ymldoesn't depend onci.yml(it runs its owncargo testbeforecargo publish), so dropping the tag-push run doesn't change releases.The cargo cache key still hashes only
Cargo.toml.Cargo.lockis gitignored, so there's no lockfile to add to the key.No code changes. fmt, clippy and the tests pass locally on stable (1.97.1).
🤖 Generated with Claude Code