Skip to content

Add GitHub Actions CI with a PHP version matrix - #9

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

Add GitHub Actions CI with a PHP version matrix#9
TomK merged 1 commit into
masterfrom
ci-actions-matrix

Conversation

@TomK

@TomK TomK commented Sep 3, 2026

Copy link
Copy Markdown
Member

No GitHub Actions CI here, just CircleCI. Adds a setup-php matrix over 7.4 / 8.0 / 8.1 / 8.2 with fail-fast: false, matching packaged/dal and the same versions CircleCI already built.

Getting there needed one dependency change: satooshi/php-coveralls ~1.0.0 is abandoned and now makes composer install unresolvable on every PHP version — v1.0.2 caps out at PHP 7.x, and the earlier releases pull symfony/yaml 2.x/3.x, which Composer refuses to install over published security advisories. So it's removed from require-dev. Nothing used it; CircleCI never invoked coveralls, and the README badge was decorative.

.circleci/config.yml is untouched — happy to remove it in a follow-up if the Actions run is the one you'll trust.

Test plan

Fresh composer install plus the full suite from a clean checkout of master, on PHP 7.4.33 and 8.2.33: both exit 0, 184 tests / 511 assertions. Both report 14 warnings for @expectedException-style annotations deprecated in PHPUnit 8 — pre-existing, and they don't fail the build. 8.0 and 8.1 get their first run on this PR.

🤖 Generated with Claude Code

Adds a setup-php matrix over 7.4, 8.0, 8.1 and 8.2 with fail-fast disabled,
mirroring packaged/dal and matching the versions the CircleCI config already
built.

Drops satooshi/php-coveralls from require-dev. It is abandoned: v1.0.2 caps
out at PHP 7.x, and the earlier releases pull symfony/yaml 2.x/3.x, which
Composer now refuses to install because of published security advisories.
With it present "composer install" cannot resolve on any supported PHP
version, so CI could not run at all. Nothing referenced it -- the CircleCI
config never invoked coveralls.

The existing CircleCI config is left in place.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@TomK
TomK merged commit 715b30a into master Sep 3, 2026
4 of 5 checks passed
@TomK
TomK deleted the ci-actions-matrix branch September 3, 2026 12:33
TomK added a commit that referenced this pull request Sep 4, 2026
Follows on from #9, which added the workflow with 7.4 through 8.2. Adds the
three current releases, so the matrix now runs 7.4, 8.0, 8.1, 8.2, 8.3, 8.4
and 8.5.

Verified against a clean checkout: fresh composer install plus the full suite
on PHP 8.5.10 exits 0 (184 tests, 511 assertions). The 14 warnings for
@expectedException-style annotations deprecated in PHPUnit 8 are unchanged and
do not fail the build.

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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