Repository navigation
ci: stop running unit/integration/e2e twice per PR push - #4
Merged
Merged
Conversation
Both `push` and `pull_request` were unfiltered, so pushing to a branch with an open PR fired both events for the same commit — running every job (unit, integration, e2e, frontend) twice, once as `(push)` and once as `(pull_request)`. Scope `push` to `main` so PR branches are covered by `pull_request` alone while `main` stays validated after merges, and add a concurrency group that cancels superseded PR runs (never `main` runs).
josephschorr
force-pushed
the
fix/ci-dedupe-push-pr
branch
from
September 26, 2026 05:22
3d7033c to
10782b5
Compare
samkim
approved these changes
Sep 28, 2026
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.
Problem
The CI workflow triggers on both events with no filters:
Pushing a commit to a branch with an open PR fires two events for that same commit —
pushandpull_request(synchronize) — so every job (unit,integration,e2e,frontend) runs twice, once shown as(push)and once as(pull_request)in the Checks UI. Same tests, same commit, double the CI minutes (e2e alone is 90 min).Fix
pull_requestruns (once per push). Duplicate gone.main(after merge) → onlypushruns, so main stays validated.Plus a
concurrencygroup that cancels superseded PR runs on re-push, but never cancelsmainruns (so every merge commit is fully validated):Verification
actionlintpasses clean on the updated workflow.