Skip to content

Commit

Permalink
Add concurrency configuration to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Jul 6, 2023
1 parent d3af0b5 commit f9ef05f
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/bc.yml_
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:

name: backwards compatibility

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

jobs:
roave_bc_check:
uses: yiisoft/actions/.github/workflows/bc.yml@master
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ on:

name: build

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

jobs:
phpunit:
uses: yiisoft/actions/.github/workflows/phpunit.yml@master
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ on:

name: Composer require checker

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

jobs:
composer-require-checker:
uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ on:

name: mutation test

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

jobs:
mutation:
uses: yiisoft/actions/.github/workflows/roave-infection.yml@master
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:

name: rector

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

jobs:
rector:
uses: yiisoft/actions/.github/workflows/rector.yml@master
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ on:

name: static analysis

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

jobs:
psalm:
uses: yiisoft/actions/.github/workflows/psalm.yml@master
Expand Down

0 comments on commit f9ef05f

Please sign in to comment.