Restore PHPUnit CI on Ubuntu 24.04 - #198
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the PHPUnit GitHub Actions workflow to keep running on ubuntu-latest (Ubuntu 24.04) while ensuring the WordPress PHPUnit bootstrap can run successfully by installing Subversion (required for svn export).
Changes:
- Adds an explicit “Install Subversion” step (
apt-get install subversion) before the WordPress test setup step. - Retains
runs-on: ubuntu-latestrather than pinning to Ubuntu 22.04.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ashfame
marked this pull request as ready for review
July 27, 2026 17:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ubuntu-latestinstead of pinning it to the deprecated Ubuntu 22.04 image.Root cause
The WordPress test installer uses
svn export, butubuntu-latestnow resolves to Ubuntu 24.04, whose hosted-runner image deliberately omits Subversion. This caused PR 197's PHPUnit job to fail before tests withsvn: command not found. The runner-images maintainers confirmed the Ubuntu 22.04 to 24.04 regression and recommend installing the package in the workflow: actions/runner-images#11219.Once the test bootstrap ran again, WordPress 6.9+'s validation exposed an existing teardown call to
wp_delete_post(0). The cleanup now callswp_delete_post()only when a transformed post exists.Validation
actionlint; the changed workflow introduces no new diagnostics (the existing numeric service-port access warning remains).