From 94f2f735218a804c5d91a8551dcd583bdfe108c5 Mon Sep 17 00:00:00 2001 From: Luffy <52o@qq52o.cn> Date: Wed, 13 Nov 2024 16:29:51 +0800 Subject: [PATCH] Limit GitHub Actions concurrent executions (#107) --- .github/workflows/phpstan.yml | 4 ++++ .github/workflows/test.yml | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 9d22be4..43b25e7 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2b8ea23..3d3e1ef 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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' @@ -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'