Skip to content

ci: run existing PHPUnit suite on PHP 8.3 and 8.4 - #14

Merged
voku merged 1 commit into
mainfrom
ci/phpunit-baseline-20261031
Nov 1, 2026
Merged

voku merged 1 commit into
mainfrom
ci/phpunit-baseline-20261031

Conversation

@voku

@voku voku commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Scope

Add the missing GitHub Actions PR/main test gate. Reuse the repository's documented composer test command and PHPUnit 9.6, without new application dependencies, source edits, or speculative static-analysis requirements.

Security

Minimal contents: read, persist-credentials: false, immutable action SHAs, unprivileged CI runner.

Evidence needed

  • Exact-head PHP 8.3 and 8.4 install + PHPUnit runs.
  • Inspect failed logs before changing test behavior or disabling checks.
  • Existing php >=7.4 package compatibility is not proven by this 8.3/8.4 matrix; expand only with separate justified evidence.
  • Review before marking ready or merging.

composer.lock is not committed; Composer resolves the dependency set during CI. No coverage, PHPStan, or formatting claims.

Summary by CodeRabbit

  • Tests
    • Automated checks now run for pull requests, updates to the main branch, and manual runs.
    • Checks cover PHP 8.3 and 8.4, helping verify the application across both supported versions.

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bc5abbca-ce2e-470d-9ae9-a426db53f6f2
Commits

Reviewing files that changed from the base of the PR and between 09b0495 and 45796e2.

Files selected for processing: 1
  • .github/workflows/ci.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

A GitHub Actions workflow now runs composer test on pull requests, pushes to main, and manual dispatches. It tests PHP 8.3 and 8.4 on Ubuntu.

Changes

CI testing

Layer / File(s) Summary
Configure the test workflow
.github/workflows/ci.yml
The workflow sets triggers, read-only contents permission, and a 15-minute timeout. It disables checkout credentials, installs Composer dependencies, and runs composer test for PHP 8.3 and 8.4.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Merge Risk: Minimal · up to 45796

CI runs the existing suite on PHP 8.3 and 8.4. No concrete merge-blocking issue was established.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: running the existing PHPUnit suite in CI on PHP 8.3 and 8.4.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the tests at dawn
PHP versions hop along
Composer starts, the workflow runs
Green results shine like morning sun
The rabbit nibbles, then moves on

@voku
voku marked this pull request as ready for review October 31, 2026 12:12
@mergify

mergify Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

voku commented Oct 31, 2026

Copy link
Copy Markdown
Owner Author

Exact-head CI evidence for 45796e2f61edd514d5687242f5b35853f4b3f12e: Actions #41199984483 completed successfully, PHP 8.3 and 8.4 both ran 25 tests / 95 assertions (PHPUnit 9.6.38). Logs show a non-fatal missing coverage-driver warning on both versions and one upstream voku/simple_html_dom implicit-nullable deprecation on PHP 8.4. The package declares PHP >=7.4, but CI does not establish the complete support range. Single workflow-file diff, pinned Actions SHA and read-only token. Ready for independent review; this evidence alone is not a review approval.

@voku voku left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scoped CI integration review at exact head 45796e2f61edd514d5687242f5b35853f4b3f12e: inspected complete one-file workflow diff, current PR metadata, check-run set, review threads, composer.json, PHPUnit configuration and both job logs. PHP 8.3 + 8.4: 25 tests / 95 assertions each, success. CodeRabbit completed with no actionable findings; no unresolved threads. Checkout and PHP setup are SHA-pinned; workflow token is contents:read, credentials not persisted. Scope is intentionally only PHP 8.3/8.4, not the declared >=7.4 compatibility range; composer.lock is absent so resolution isn't reproducible across time. Nonfatal coverage-driver warning and upstream PHP 8.4 deprecation remain outside this one-file CI baseline. I found no blocking issue in this bounded workflow change. This is a review COMMENT, not a formal independent approval or a claim of exhaustive compatibility.

@voku
voku merged commit ed6614a into main Nov 1, 2026
6 checks passed
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