Skip to content

ci: PHP 8.2 to 8.4 matrix, lowest dependencies, enforced code style - #14

Merged
ogorzalka merged 2 commits into
mainfrom
ci/pint-php-matrix
Oct 15, 2026
Merged

ogorzalka merged 2 commits into
mainfrom
ci/pint-php-matrix

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Stacked on #13.

Matrix (tests job): PHP 8.2, 8.3, 8.4 with the highest dependencies, plus PHP 8.2 with --prefer-lowest. Each leg runs the tests and, as a separate step, the documentation examples.

Style (own job, PHP 8.4): pint --test now fails the build. It used to run pint without --test, which fixes silently and never failed. Four files that were not formatted are fixed (style only: spacing and docblock alignment, no code change).

Also: actions/checkout v3 to v4, no coverage driver (nothing used it), laravel/pint floor raised to ^1.30.

How it was validated: I ran each job in a clean container (fresh source export, no vendor, no composer.lock, as on CI): 8.2, 8.3, 8.4 highest and 8.2 lowest all pass (242 tests + 75 documentation examples), and pint --test passes with Pint 1.30.0, 1.30.4 and 1.32.1. Pint 1.13.0, the old floor, formats differently, hence the new floor.

PHP 8.5 is not in the matrix on purpose: the dev dependencies do not install on it (paratest 7.4 requires PHP 8.2 to 8.4, pulled in by Pest 2). With the platform check ignored, the whole suite passes on 8.5.11 and no deprecation comes from src/ or tests/ (they all come from Pest 2 in vendor/). Supporting it in CI needs a Pest upgrade.

@ogorzalka
ogorzalka changed the base branch from ci/docs-examples to main October 15, 2026 14:07
@ogorzalka
ogorzalka merged commit d3bb05f into main Oct 15, 2026
10 checks passed
@ogorzalka
ogorzalka deleted the ci/pint-php-matrix branch October 15, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant