Skip to content

Commit

Permalink
Limit GitHub Actions concurrent executions (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Nov 13, 2024
1 parent ab44f7e commit 94f2f73
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
pull_request:

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

jobs:
tests:
name: PHP${{ matrix.php-version }} Static Code Analysis on Linux
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
schedule:
- cron: '11 2 * * 1'

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

jobs:
linux:
name: PHP${{ matrix.php-version }} Swoole-${{ matrix.swoole-version }} Test on Linux
Expand All @@ -14,7 +18,7 @@ jobs:
matrix:
os: [ ubuntu-latest ]
php-version: [ '8.0', '8.1', '8.2', '8.3' ]
swoole-version: [ 'v4.8.13', 'v5.1.4', 'master' ]
swoole-version: [ 'v4.8.13', 'v5.1.5', 'master' ]
exclude:
- php-version: '8.3'
swoole-version: 'v4.8.13'
Expand Down Expand Up @@ -71,7 +75,7 @@ jobs:
matrix:
os: [ macos-latest ]
php-version: [ '8.0', '8.1', '8.2', '8.3' ]
swoole-version: [ 'v4.8.13', 'v5.1.4', 'master' ]
swoole-version: [ 'v4.8.13', 'v5.1.5', 'master' ]
exclude:
- php-version: '8.3'
swoole-version: 'v4.8.13'
Expand Down

0 comments on commit 94f2f73

Please sign in to comment.