Skip to content

test: migrate test suite to Pest 4 and fix CI matrix#49

Merged
el-schneider merged 3 commits intomainfrom
fix/pest-migration
Mar 26, 2026
Merged

test: migrate test suite to Pest 4 and fix CI matrix#49
el-schneider merged 3 commits intomainfrom
fix/pest-migration

Conversation

@el-schneider
Copy link
Copy Markdown
Collaborator

What

Includes the change from #48 (cherry-picked) plus:

  • Convert PHPUnit test class to Pest 4
  • Tighten dev deps: pestphp/pest ^4.0, testbench ^9.17||^10.11||^11.0
  • Trim CI matrix: drop L10, S4, prefer-lowest; actually use matrix.statamic in install step
  • Exclude impossible combos (L13+S5, L11+S6, L13+PHP 8.2)
  • Update checkout action to v4

Why

The existing CI was failing on main (14/44 jobs broken) due to:

  1. PHPUnit 12 dropped @test annotation support — all tests used /** @test */ with non-test_ method names
  2. matrix.statamic was never used in the install command — S4/S5 jobs were identical
  3. prefer-lowest pulled ancient testbench versions that crash with \$latestResponse errors

Supersedes #48.

ito-ito-ito-ito and others added 3 commits March 26, 2026 11:26
The laravel/framework dependency is already defined by statamic/cms,
making the explicit constraint unnecessary. Removing it avoids the need
to update this package every time a new Laravel version is released.

Also removes the dev-laravel-13 branch reference from the statamic/cms
constraint as it is no longer needed after #47 was merged.
- Convert PHPUnit test class to Pest 4 (fixes PHPUnit 12 @test annotation breakage)
- Tighten dev deps: pestphp/pest ^4.0, testbench ^9.17||^10.11||^11.0
- Trim CI matrix: drop L10, S4, prefer-lowest; actually use matrix.statamic
- Exclude impossible combos (L13+S5, L11+S6, L13+PHP 8.2)
- Update checkout action to v4, phpunit.xml.dist schema to 12.5
@el-schneider el-schneider requested a review from simonerd March 26, 2026 10:33
@el-schneider el-schneider merged commit 6fb29a6 into main Mar 26, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants