From 1aed84386ad1ba11307dbd9089f64b5a6af41945 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Mon, 13 Jul 2026 14:13:15 +0300 Subject: [PATCH 1/3] Cleanup GitHub workflows --- .github/workflows/bc.yml | 34 +++++------------ .github/workflows/bench.yml | 35 +++++++---------- .github/workflows/build.yml | 38 +++++++++---------- .../workflows/composer-require-checker.yml | 38 ++++++++----------- .github/workflows/docs.yml | 11 ++---- .github/workflows/mutation.yml | 32 +++++++--------- .github/workflows/rector-cs.yml | 17 +++++---- .github/workflows/static.yml | 36 ++++++++---------- .github/workflows/zizmor.yml | 16 +++----- 9 files changed, 102 insertions(+), 155 deletions(-) diff --git a/.github/workflows/bc.yml b/.github/workflows/bc.yml index 7d57ef47..3c7add6e 100644 --- a/.github/workflows/bc.yml +++ b/.github/workflows/bc.yml @@ -1,36 +1,22 @@ -permissions: - contents: read +name: backwards compatibility on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' - - 'psalm.xml' + paths: &paths + - 'src/**' + - '.github/workflows/bc.yml' + - '.roave-backward-compatibility-check.xml' + - 'composer.json' push: - branches: [ 'master' ] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' - - 'psalm.xml' + branches: ['master'] + paths: *paths -name: backwards compatibility +permissions: + contents: read jobs: roave_bc_check: uses: yiisoft/actions/.github/workflows/bc.yml@master with: - os: >- - ['ubuntu-latest'] php: >- ['8.3'] diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 08db924b..24a9342d 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -1,29 +1,22 @@ -permissions: - contents: read +name: benchmark on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' - + paths: &paths + - 'src/**' + - 'tests/Benchmark/**' + - 'composer.json' + - 'phpbench.json' push: - branches: [ 'master' ] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: *paths + +permissions: + contents: read -name: build +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: phpbench: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 19ebb294..da071396 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,29 +1,25 @@ -permissions: - contents: read +name: build on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' - + paths: &paths + - 'config/**' + - 'messages/**' + - 'src/**' + - 'tests/**' + - '.github/workflows/build.yml' + - 'composer.json' + - 'phpunit.xml.dist' push: - branches: [ 'master' ] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: *paths -name: build +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: phpunit: diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml index 156287ce..893c769c 100644 --- a/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/composer-require-checker.yml @@ -1,31 +1,23 @@ -permissions: - contents: read +name: Composer require checker on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' - - 'psalm.xml' - + paths: &paths + - 'config/**' + - 'src/**' + - '.github/workflows/composer-require-checker.yml' + - 'composer.json' + - 'composer-require-checker.json' push: - branches: [ 'master' ] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' - - 'psalm.xml' + branches: ['master'] + paths: *paths -name: Composer require checker +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: composer-require-checker: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 594ef06f..e9ddf90f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,16 +2,11 @@ name: Update docs translation on: pull_request: - paths: - - 'docs/po/**' - - 'docs/pot/**' - - 'docs/po4a.conf' - - 'docs/po4a-base.conf' - - 'docs/prepare-config.sh' + paths: &paths + - 'docs/**' push: branches: [ "master" ] - paths: - - 'docs/**' + paths: *paths permissions: contents: read diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index ce6170ad..8c911b8f 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -1,27 +1,21 @@ -permissions: - contents: read +name: mutation test on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'psalm.xml' - + paths: &paths + - 'config/**' + - 'src/**' + - 'tests/**' + - '.github/workflows/mutation.yml' + - 'composer.json' + - 'infection.json.dist' + - 'phpunit.xml.dist' push: - branches: [ 'master' ] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'psalm.xml' + branches: ['master'] + paths: *paths -name: mutation test +permissions: + contents: read jobs: mutation: diff --git a/.github/workflows/rector-cs.yml b/.github/workflows/rector-cs.yml index dae5dca8..de3767b7 100644 --- a/.github/workflows/rector-cs.yml +++ b/.github/workflows/rector-cs.yml @@ -2,14 +2,15 @@ name: Rector + PHP CS Fixer on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'config/**' + - 'messages/**' + - 'src/**' + - 'tests/**' + - '.github/workflows/rector-cs.yml' + - 'composer.json' + - 'rector.php' + - '.php-cs-fixer.dist.php' permissions: contents: read diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 09dc6d45..2a82ac30 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,29 +1,23 @@ -permissions: - contents: read +name: static analysis on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' - + paths: &paths + - 'src/**' + - 'config/**' + - '.github/workflows/static.yml' + - 'psalm*.xml' + - 'composer.json' push: - branches: [ 'master' ] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' + branches: ['master'] + paths: *paths -name: static analysis +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: psalm: diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 430255de..75342349 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -1,21 +1,17 @@ name: GitHub Actions Security Analysis with zizmor 🌈 on: - push: - branches: - - master - - main - paths: - - '.github/**.yml' - - '.github/**.yaml' pull_request: - paths: + paths: &paths - '.github/**.yml' - '.github/**.yaml' + push: + branches: ['master'] + paths: *paths permissions: - actions: read # Required by zizmor when reading workflow metadata through the API. - contents: read # Required to read workflow files. + actions: read # Required by zizmor when reading workflow metadata through the API + contents: read # Required to read workflow files jobs: zizmor: From 2454401fda564dbfb2960b4fe144755fa3f7601a Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Mon, 13 Jul 2026 14:14:07 +0300 Subject: [PATCH 2/3] fix --- .github/workflows/docs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e9ddf90f..daed9fe7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -3,6 +3,7 @@ name: Update docs translation on: pull_request: paths: &paths + - '.github/workflows/docs.yml' - 'docs/**' push: branches: [ "master" ] From 9a705ffef7d283cee501ed3828e0b946e106d9e0 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Mon, 13 Jul 2026 14:15:07 +0300 Subject: [PATCH 3/3] fix --- .github/workflows/bench.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 24a9342d..31599b1a 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -3,6 +3,7 @@ name: benchmark on: pull_request: paths: &paths + - '.github/workflows/bench.yml' - 'src/**' - 'tests/Benchmark/**' - 'composer.json'