Skip to content

Commit d5096b2

Browse files
authored
Merge pull request #6739 from paulbalandan/concurrency
Cancel running CI jobs when a PR is updated
2 parents 35e3664 + 7f53a86 commit d5096b2

File tree

9 files changed

+36
-0
lines changed

9 files changed

+36
-0
lines changed

.github/workflows/test-autoreview.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
- '**.php'
1515
- .github/workflows/test-autoreview.yml
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
19+
cancel-in-progress: true
20+
1721
jobs:
1822
auto-review-tests:
1923
name: Automatic Code Review

.github/workflows/test-coding-standards.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
- 'spark'
1313
- '.github/workflows/test-coding-standards.yml'
1414

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
17+
cancel-in-progress: true
18+
1519
jobs:
1620
lint:
1721
name: PHP ${{ matrix.php-version }} Lint with PHP CS Fixer

.github/workflows/test-deptrac.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ on:
2424
- 'depfile.yaml'
2525
- '.github/workflows/test-deptrac.yml'
2626

27+
concurrency:
28+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
29+
cancel-in-progress: true
30+
2731
jobs:
2832
build:
2933
name: Architectural Inspection

.github/workflows/test-phpcpd.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ on:
2323
- 'system/**.php'
2424
- '.github/workflows/test-phpcpd.yml'
2525

26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
28+
cancel-in-progress: true
29+
2630
jobs:
2731
build:
2832
name: Duplicate Code Detection

.github/workflows/test-phpstan.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ on:
2727
- '**.neon.dist'
2828
- '.github/workflows/test-phpstan.yml'
2929

30+
concurrency:
31+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
32+
cancel-in-progress: true
33+
3034
jobs:
3135
build:
3236
name: PHP ${{ matrix.php-versions }} Static Analysis

.github/workflows/test-phpunit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ on:
2727
- phpunit.xml.dist
2828
- .github/workflows/test-phpunit.yml
2929

30+
concurrency:
31+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
32+
cancel-in-progress: true
33+
3034
jobs:
3135
tests:
3236
name: PHP ${{ matrix.php-versions }} - ${{ matrix.db-platforms }}

.github/workflows/test-rector.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ on:
2929
- composer.json
3030
- rector.php
3131

32+
concurrency:
33+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
34+
cancel-in-progress: true
35+
3236
jobs:
3337
build:
3438
name: PHP ${{ matrix.php-versions }} Analyze code (Rector) on ${{ matrix.paths }}

.github/workflows/test-scss.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919
- '**.css'
2020
- '.github/workflows/test-scss.yml'
2121

22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
24+
cancel-in-progress: true
25+
2226
jobs:
2327
build:
2428
name: Compilation of SCSS (Dart Sass)

.github/workflows/test-userguide.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
- 'user_guide_src/**'
1111
- '.github/workflows/test-userguide.yml'
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
syntax_check:
1519
name: Check User Guide syntax

0 commit comments

Comments
 (0)