Skip to content

Commit edb9bd9

Browse files
committed
ci: Add concurrency control to cancel outdated test runs
Add concurrency configuration to Maven Tests workflow to automatically cancel previous runs when new commits are pushed to the same PR or branch. This saves CI/CD resources and provides faster feedback. Configuration: - Groups runs by workflow name and PR number (or branch ref) - Automatically cancels in-progress runs when new ones start
1 parent 9393a9a commit edb9bd9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/maven-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
test:
1317
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)