Conversation
📝 WalkthroughWalkthroughAdds PHP 8.3 to the GitHub Actions PHP matrices for integration and unit tests, moves per-entry php: '8.3' include entries to '8.4', and introduces PHP 8.5 runs marked experimental (with Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/integration-tests.yml(1 hunks).github/workflows/unit-tests.yml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: E2E against WordPress latest
🔇 Additional comments (5)
.github/workflows/unit-tests.yml (3)
33-33: Matrix expansion to PHP 8.3 looks goodBroadens coverage without changing behavior elsewhere.
41-43: Add PHP 8.5 as experimental — setup-php supports 8.5 (nightly); verify Composer/PHPUnit
shivammathur/setup-php@v2 supports PHP 8.5 as a nightly/8.5.0-dev build, so keeping experimental: true is fine; confirm your Composer/PHPUnit constraints and install flags (e.g., --ignore-platform-reqs where intended) won’t hard-fail on 8.5.File: .github/workflows/unit-tests.yml Lines: 41-43
- php: '8.5' experimental: true fail-fast: false
37-40: pcov supports PHP 8.4 — OK to shift coverage runpcov v1.0.12 lists PHP 8.4 compatibility and shivammathur/setup-php@v2 provides PCOV binaries for PHP 8.4; switch to php: '8.4' and run the CI workflow once to confirm the pcov.exclude ini value behaves as expected.
.github/workflows/integration-tests.yml (2)
32-32: Matrix expansion to PHP 8.3 looks goodKeeps parity with unit-test coverage.
37-40: Coverage move to PHP 8.4 — pcov is compatible and will be installed by setup-phppcov supports PHP 8.4 and shivammathur/setup-php can install it on Ubuntu runners (it builds via PECL/packages rather than shipping prebuilt pcov binaries), so the workflow's
extensions: pcovforphp: '8.4'should work.
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/unit-tests.yml (1)
37-41: Tighten YAML quoting for ini-values (minor).Current mixed quoting is valid but a bit brittle. Prefer single‑quoting the whole string to avoid escaping gymnastics.
Apply this diff:
- ini-values: pcov.directory=., "pcov.exclude=\"~(vendor|tests)~\"" + ini-values: 'pcov.directory=., pcov.exclude="~(vendor|tests)~"'
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/integration-tests.yml(1 hunks).github/workflows/unit-tests.yml(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- .github/workflows/integration-tests.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: build
- GitHub Check: E2E against WordPress latest
🔇 Additional comments (2)
.github/workflows/unit-tests.yml (2)
33-33: PHP matrix expansion — looks good.Adding up to 8.3 at the top level and using include for 8.4/8.5 is a clean way to customize coverage/flags without duplicating entries.
42-44: Confirmed: setup-php supports PHP 8.5 on ubuntu-24.04; pcov available for PHP 8.4 — omitting coverage for 8.5 is reasonable.shivammathur/setup-php@v2 exposes PHP 8.5 (nightly 8.5.0-dev) on GitHub-hosted ubuntu-24.04 runners, and pcov is supported for PHP 8.4 (PCOV runs on PHP ≥ 7.1); marking 8.5 experimental with continue-on-error and leaving coverage out for 8.5 is appropriate.
…ng-to-integration-tests" (0001f7b)
Description
With this PR, we're adding experimental PHP 8.5 testing to our integration and unit tests.
Motivation and context
Closes #3697.
How has this been tested?
Testing against PHP 8.5 should pass.
Summary by CodeRabbit
Tests
Chores