Skip to content

CI: run on PRs and main, not on every branch push - #4

Merged
heliocosta-dev merged 1 commit into
mainfrom
ci-lint
Oct 8, 2026
Merged

heliocosta-dev merged 1 commit into
mainfrom
ci-lint

Conversation

@heliocosta-dev

Copy link
Copy Markdown
Member

CI already runs cargo fmt --check, cargo clippy --all-targets --all-features -- -D warnings, cargo build and cargo 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 for push and once for pull_request, as seen on the open Dependabot PRs). It also ran for every v* tag push. CI now runs on every pull request and on pushes to main.

release.yml doesn't depend on ci.yml (it runs its own cargo test before cargo publish), so dropping the tag-push run doesn't change releases.

The cargo cache key still hashes only Cargo.toml. Cargo.lock is 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

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>
@heliocosta-dev
heliocosta-dev merged commit 06f7ec2 into main Oct 8, 2026
1 check passed
@heliocosta-dev
heliocosta-dev deleted the ci-lint branch October 8, 2026 23:04
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.

1 participant