Skip to content

Run CI as a PHP version matrix on GitHub Actions - #43

Merged
TomK merged 1 commit into
masterfrom
ci-actions-matrix
Sep 3, 2026
Merged

Run CI as a PHP version matrix on GitHub Actions#43
TomK merged 1 commit into
masterfrom
ci-actions-matrix

Conversation

@TomK

@TomK TomK commented Sep 3, 2026

Copy link
Copy Markdown
Member

CI ran a single containerised php-actions job pinned to PHP 7.4, so nothing above 7.4 was ever exercised despite the package being installable on 8.x. It also triggered on every push to every branch, which double-ran on PR branches.

Now a setup-php matrix over 7.4 / 8.0 / 8.1 / 8.2 with fail-fast: false, mirroring packaged/dal. 7.4 is in there to cover the "php": ">=7.4" floor in composer.json. Triggers are pushes to master and PRs targeting master.

No service containers or extra extensions — unlike dal, rwd has no ext or database requirements.

Test plan

Suite is green locally on PHP 7.4.33 and 8.2.33 (112 tests, 249 assertions). The one risky test — UnknownTest::testTestCards performs no assertions — predates this change. Workflow YAML parses clean; the matrix legs themselves run on this PR.

🤖 Generated with Claude Code

Jleagle
Jleagle previously approved these changes Sep 3, 2026
Replace the single containerised php-actions job (pinned to PHP 7.4) with a
setup-php matrix over 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 and 8.5, mirroring
packaged/dal and extending it to current PHP. The lowest version matches the
"php": ">=7.4" floor in composer.json.

Triggers are narrowed to pushes to master and PRs targeting master; previously
every push on every branch ran, double-running on PR branches.

PHPUnit 8.5 emits "implicitly nullable parameter" deprecations from its own
vendor code on PHP 8.4+, but they are raised at bootstrap and do not affect
the exit code. Silencing them means moving to PHPUnit 9+, which is a separate
change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@TomK
TomK merged commit da64c88 into master Sep 3, 2026
7 checks passed
@TomK
TomK deleted the ci-actions-matrix branch September 3, 2026 14:00
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.

2 participants