From fccb9b24d6f4fce36efba94a3997cb131a58a6e2 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Tue, 14 Apr 2026 12:55:56 +0700 Subject: [PATCH 1/3] Update workflow configurations --- .github/workflows/bc.yml_ | 25 +++---------- .github/workflows/build.yml | 36 +++++++++---------- .../workflows/composer-require-checker.yml | 36 ++++++++----------- .github/workflows/mutation.yml | 31 ++++++---------- .github/workflows/static.yml | 34 ++++++++---------- .gitignore | 3 ++ composer.json | 5 ++- 7 files changed, 66 insertions(+), 104 deletions(-) diff --git a/.github/workflows/bc.yml_ b/.github/workflows/bc.yml_ index b269391..058dedb 100644 --- a/.github/workflows/bc.yml_ +++ b/.github/workflows/bc.yml_ @@ -1,25 +1,12 @@ 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' + - 'composer.json' push: branches: ['master'] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' - - 'psalm.xml' + paths: *paths name: backwards compatibility @@ -30,7 +17,5 @@ jobs: roave_bc_check: uses: yiisoft/actions/.github/workflows/bc.yml@master with: - os: >- - ['ubuntu-latest'] php: >- ['8.1'] diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 05e7b40..51cf5ab 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,34 +1,30 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: &paths + - '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' + paths: *paths name: build +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: phpunit: uses: yiisoft/actions/.github/workflows/phpunit.yml@master secrets: - codecovToken: ${{ secrets.CODECOV_TOKEN }} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: - os: >- - ['ubuntu-latest', 'windows-latest'] php: >- - ['8.1', '8.2', '8.3'] + ['8.1', '8.2', '8.3', '8.4', '8.5'] diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml index a857bce..ccb020e 100644 --- a/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/composer-require-checker.yml @@ -1,34 +1,28 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' - - 'psalm.xml' + paths: &paths + - 'src/**' + - 'config/**' + - '.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' + paths: *paths name: Composer require checker +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: composer-require-checker: uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master with: - os: >- - ['ubuntu-latest'] php: >- - ['8.1', '8.2', '8.3'] + ['8.1', '8.2', '8.3', '8.4', '8.5'] diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index 8150499..56c0b70 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -1,32 +1,21 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'psalm.xml' + paths: &paths + - 'src/**' + - 'tests/**' + - '.github/workflows/mutation.yml' + - 'composer.json' + - 'infection.json.dist' push: branches: ['master'] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'psalm.xml' + paths: *paths -name: mutation test +permissions: + contents: read jobs: mutation: - uses: yiisoft/actions/.github/workflows/roave-infection.yml@master - with: - os: >- - ['ubuntu-latest'] - php: >- - ['8.2'] + uses: yiisoft/actions/.github/workflows/infection.yml@master secrets: STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index e33eca8..513361f 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,32 +1,28 @@ 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' + paths: *paths name: static analysis +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: psalm: uses: yiisoft/actions/.github/workflows/psalm.yml@master with: - os: >- - ['ubuntu-latest'] php: >- - ['8.1', '8.2', '8.3'] + ['8.1', '8.2', '8.3', '8.4', '8.5'] diff --git a/.gitignore b/.gitignore index d3b3a3d..d1649a2 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,6 @@ composer.phar # PHP CS Fixer /.php-cs-fixer.cache /.php-cs-fixer.php + +# AI local settings +/.claude diff --git a/composer.json b/composer.json index b56270b..e0a563b 100644 --- a/composer.json +++ b/composer.json @@ -34,9 +34,8 @@ "friendsofphp/php-cs-fixer": "^3.93", "yiisoft/code-style": "^1.0", "maglnet/composer-require-checker": "^4.7.1", - "phpunit/phpunit": "^10.5.46", - "rector/rector": "^2.0.16", - "roave/infection-static-analysis-plugin": "^1.35", + "phpunit/phpunit": "^10.5.60", + "rector/rector": "^2.3.4", "spatie/phpunit-watcher": "^1.24", "vimeo/psalm": "^5.26.1 || ^6.10.3" }, From 7203f73ab644251c7e3c4481ba9fbb7f41aaf361 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Tue, 14 Apr 2026 17:44:33 +0700 Subject: [PATCH 2/3] Update --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index e0a563b..2b4584d 100644 --- a/composer.json +++ b/composer.json @@ -34,8 +34,8 @@ "friendsofphp/php-cs-fixer": "^3.93", "yiisoft/code-style": "^1.0", "maglnet/composer-require-checker": "^4.7.1", - "phpunit/phpunit": "^10.5.60", - "rector/rector": "^2.3.4", + "phpunit/phpunit": "^10.5.63", + "rector/rector": "^2.4.1", "spatie/phpunit-watcher": "^1.24", "vimeo/psalm": "^5.26.1 || ^6.10.3" }, From 1ae4eb6436c3194682a4b27a36930da63f7bd1c2 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Mon, 20 Apr 2026 10:54:45 +0700 Subject: [PATCH 3/3] Update --- .github/workflows/mutation.yml | 4 +++- composer.json | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index 56c0b70..f195195 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -11,11 +11,13 @@ on: branches: ['master'] paths: *paths +name: mutation test + permissions: contents: read jobs: mutation: - uses: yiisoft/actions/.github/workflows/infection.yml@master + uses: yiisoft/actions/.github/workflows/roave-infection.yml@master secrets: STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} diff --git a/composer.json b/composer.json index 2b4584d..15a5695 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,8 @@ "yiisoft/code-style": "^1.0", "maglnet/composer-require-checker": "^4.7.1", "phpunit/phpunit": "^10.5.63", - "rector/rector": "^2.4.1", + "rector/rector": "^2.4.2", + "roave/infection-static-analysis-plugin": "^1.35", "spatie/phpunit-watcher": "^1.24", "vimeo/psalm": "^5.26.1 || ^6.10.3" },