Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel running CI jobs when a PR is updated #6739

Merged
merged 1 commit into from Oct 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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