Skip to content

ci: add GitHub Actions build and test matrix (PHP 8.1-8.5) - #8

Merged
MirKml merged 1 commit into
php:masterfrom
somethingwithproof:ci/github-actions
Aug 20, 2026
Merged

MirKml merged 1 commit into
php:masterfrom
somethingwithproof:ci/github-actions

Conversation

@somethingwithproof

Copy link
Copy Markdown
Contributor

Adds a GitHub Actions workflow that builds the extension against librrd and runs
the .phpt suite on PHP 8.1 through 8.5.

The repository had no CI, which is why the PHP 8.5 build break in #7 shipped
unnoticed until a user hit pecl install — nothing exercised the build. This
catches that class of regression on every push and PR.

Validated locally in Docker across the full matrix (librrd 1.7.2): all five
versions build, and the test suite runs with 0 failures (6 run, the rest skip
where they need rrdcached or a live rrdtool binary).

  • pinned actions to commit SHA
  • least-privilege permissions: contents: read
  • fail-fast: false so one version's break does not mask the others

Builds the extension against librrd and runs the .phpt suite on PHP
8.1 through 8.5. The PHP 8.5 build break in php#7 shipped unnoticed because
nothing exercised the build; this catches that class of regression.

Signed-off-by: Thomas Vincent <[email protected]>
@MirKml

MirKml commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Thanks, merged. I'm not familiar with setup CI for github repos at all, maybe later :-)

@MirKml
MirKml merged commit c8e18ba into php:master Aug 20, 2026
@somethingwithproof
somethingwithproof deleted the ci/github-actions branch August 20, 2026 21:30
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