Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [ master ]

permissions:
contents: read

jobs:
# Automatically fixes code style errors that can be resolved and commits them
# Only for pull requests from your own repo (not for forks, not on master)
Expand Down Expand Up @@ -66,18 +69,23 @@ jobs:
- name: Check syntax error in sources
run: find ./src/ ./tests/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l

- name: Clear cache of Composer
run: composer clear-cache
# Validate has include update
- name: Validate Composer.json and composer.lock
run: composer validate --strict

- name: Get Composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"

- name: Cache Composer packages
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-${{ runner.os }}-${{ matrix.php-versions }}-${{ hashFiles('composer.lock') }}
restore-keys: composer-${{ runner.os }}-${{ matrix.php-versions }}-

- name: Install dependencies
run: composer install -q -n -a --no-progress --prefer-dist

- name: Check code styles
continue-on-error: true
run: ./vendor/bin/phpcs

- name: Run QA Scripts from composer.json
run: composer qa
39 changes: 0 additions & 39 deletions .github/workflows/phpcbf.yml

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Changed
* Lower `phpunit/phpunit` to `^11.5`: PHPUnit 13 requires PHP 8.4, but the library and CI support PHP 8.2 and 8.3. Refresh `composer.lock`.
* Set `minimum-stability` to `stable` and remove unused `allow-plugins` entries.
* CI: remove the duplicate `phpcbf.yml` autofix workflow (autofix stays in `main.yml` for pull requests), set default `contents: read` permissions, drop the redundant non-blocking `phpcs` step and `composer clear-cache`, and cache Composer packages.
* Update `antecedent/patchwork` to 2.2.5 and `stefanzweifel/git-auto-commit-action` to 7.

## 2.3.0 (2026-11-06)
Expand Down
Loading