Skip to content

Commit fdc25ff

Browse files
feat: cancel prev CI workflows if there are newer commits (#601)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Enhanced CI/CD pipeline efficiency with improved workflow concurrency management and refined event trigger configurations to prevent redundant automation runs and ensure consistent execution across branches and pull requests. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent fc5b237 commit fdc25ff

File tree

7 files changed

+36
-8
lines changed

7 files changed

+36
-8
lines changed

.github/workflows/ci-fmt.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
name: Run CI - Format
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
17
on:
28
push:
39
branches: [master, dev]
410
pull_request:
511
types: [opened, reopened, synchronize, ready_for_review]
612

7-
name: Run CI - Format
8-
913
jobs:
1014
run_make_ci_format:
1115
if: github.event.pull_request.draft == false

.github/workflows/ci-lint.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
name: Run CI - Lint
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
17
on:
28
push:
39
branches: [master, dev]
410
pull_request:
511
types: [opened, reopened, synchronize, ready_for_review]
612

7-
name: Run CI - Lint
8-
913
jobs:
1014
run_make_ci_lint:
1115
if: github.event.pull_request.draft == false

.github/workflows/ci-test-integration.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
name: Run CI - Integration Tests
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
17
on:
28
push:
39
branches: [master, dev]
410
pull_request:
511
types: [opened, reopened, synchronize, ready_for_review]
612

7-
name: Run CI - Integration Tests
8-
913
jobs:
1014
run_make_ci_test:
1115
if: github.event.pull_request.draft == false

.github/workflows/ci-test-unit.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
name: Run CI - Unit Tests
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
17
on:
28
push:
39
branches: [master, dev]
410
pull_request:
511
types: [opened, reopened, synchronize, ready_for_review]
612

7-
name: Run CI - Unit Tests
8-
913
jobs:
1014
run_make_ci_test:
1115
if: github.event.pull_request.draft == false

.github/workflows/deploy-testnet-by-pr-comment.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Deploy to Testnet by PR Comment
22

3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
37
on:
48
pull_request:
59
types: [opened, reopened, synchronize]

.github/workflows/publish-packages.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Publish ephemeral validator packages
22

3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
37
on:
48
release:
59
types: [published]

.github/workflows/slack-notify.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Notify Reviewers on Slack
22

3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
37
on:
48
pull_request:
59
types: [review_requested]

0 commit comments

Comments
 (0)