From bf7f12f736be822afc4a2611d7cb025e52515af1 Mon Sep 17 00:00:00 2001 From: lekss361 Date: Sat, 16 May 2026 11:02:23 +0300 Subject: [PATCH 1/2] chore(ci): run CI on push to feature branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add conventional-prefix branch patterns to on.push.branches so CI triggers immediately on feat/**, fix/**, refactor/**, chore/**, docs/**, perf/**, test/**, hotfix/** pushes без waiting for PR. Side effects: - Double-run при PR (push + pull_request events) — acceptable, capacity=2 - Не trigger'ит на experimental/wip/temp branches (no prefix) — intentional --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 936cfd83..64d59fa4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,16 @@ name: CI on: push: - branches: [main] + branches: + - main + - 'feat/**' + - 'fix/**' + - 'refactor/**' + - 'chore/**' + - 'docs/**' + - 'perf/**' + - 'test/**' + - 'hotfix/**' pull_request: branches: [main] -- 2.45.3 From d1e2de026e1aa92ea8a71eb47d64b3532052e5b8 Mon Sep 17 00:00:00 2001 From: lekss361 Date: Sat, 16 May 2026 11:18:44 +0300 Subject: [PATCH 2/2] fix(ci): add concurrency group to cancel stale runs on same branch Prevents double-run on PR (push + pull_request events), eliminates cache contention, and frees runner capacity from queued feature-branch jobs. --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64d59fa4..a2c3ed7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,10 @@ on: pull_request: branches: [main] +concurrency: + group: ci-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: backend: runs-on: ubuntu-latest -- 2.45.3