Skip to content

Commit

Permalink
Merge pull request #6739 from paulbalandan/concurrency
Browse files Browse the repository at this point in the history
Cancel running CI jobs when a PR is updated
  • Loading branch information
paulbalandan committed Oct 23, 2022
2 parents 35e3664 + 7f53a86 commit d5096b2
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test-autoreview.yml
Expand Up @@ -14,6 +14,10 @@ on:
- '**.php'
- .github/workflows/test-autoreview.yml

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
auto-review-tests:
name: Automatic Code Review
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-coding-standards.yml
Expand Up @@ -12,6 +12,10 @@ on:
- 'spark'
- '.github/workflows/test-coding-standards.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
lint:
name: PHP ${{ matrix.php-version }} Lint with PHP CS Fixer
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-deptrac.yml
Expand Up @@ -24,6 +24,10 @@ on:
- 'depfile.yaml'
- '.github/workflows/test-deptrac.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build:
name: Architectural Inspection
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-phpcpd.yml
Expand Up @@ -23,6 +23,10 @@ on:
- 'system/**.php'
- '.github/workflows/test-phpcpd.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build:
name: Duplicate Code Detection
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-phpstan.yml
Expand Up @@ -27,6 +27,10 @@ on:
- '**.neon.dist'
- '.github/workflows/test-phpstan.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build:
name: PHP ${{ matrix.php-versions }} Static Analysis
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-phpunit.yml
Expand Up @@ -27,6 +27,10 @@ on:
- phpunit.xml.dist
- .github/workflows/test-phpunit.yml

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
tests:
name: PHP ${{ matrix.php-versions }} - ${{ matrix.db-platforms }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-rector.yml
Expand Up @@ -29,6 +29,10 @@ on:
- composer.json
- rector.php

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build:
name: PHP ${{ matrix.php-versions }} Analyze code (Rector) on ${{ matrix.paths }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-scss.yml
Expand Up @@ -19,6 +19,10 @@ on:
- '**.css'
- '.github/workflows/test-scss.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build:
name: Compilation of SCSS (Dart Sass)
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-userguide.yml
Expand Up @@ -10,6 +10,10 @@ on:
- 'user_guide_src/**'
- '.github/workflows/test-userguide.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
syntax_check:
name: Check User Guide syntax
Expand Down

0 comments on commit d5096b2

Please sign in to comment.