Skip to content

Commit 94f2f73

Browse files
authored
Limit GitHub Actions concurrent executions (#107)
1 parent ab44f7e commit 94f2f73

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/phpstan.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
pull_request:
66

7+
concurrency:
8+
group: phpstan-${{ github.ref }}
9+
cancel-in-progress: true
10+
711
jobs:
812
tests:
913
name: PHP${{ matrix.php-version }} Static Code Analysis on Linux

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
schedule:
77
- cron: '11 2 * * 1'
88

9+
concurrency:
10+
group: test-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
linux:
1115
name: PHP${{ matrix.php-version }} Swoole-${{ matrix.swoole-version }} Test on Linux
@@ -14,7 +18,7 @@ jobs:
1418
matrix:
1519
os: [ ubuntu-latest ]
1620
php-version: [ '8.0', '8.1', '8.2', '8.3' ]
17-
swoole-version: [ 'v4.8.13', 'v5.1.4', 'master' ]
21+
swoole-version: [ 'v4.8.13', 'v5.1.5', 'master' ]
1822
exclude:
1923
- php-version: '8.3'
2024
swoole-version: 'v4.8.13'
@@ -71,7 +75,7 @@ jobs:
7175
matrix:
7276
os: [ macos-latest ]
7377
php-version: [ '8.0', '8.1', '8.2', '8.3' ]
74-
swoole-version: [ 'v4.8.13', 'v5.1.4', 'master' ]
78+
swoole-version: [ 'v4.8.13', 'v5.1.5', 'master' ]
7579
exclude:
7680
- php-version: '8.3'
7781
swoole-version: 'v4.8.13'

0 commit comments

Comments
 (0)