Skip to content

Update how we run PHPUnit#388

Merged
dkotter merged 8 commits intodevelopfrom
update/phpunit-workflow
Feb 25, 2026
Merged

Update how we run PHPUnit#388
dkotter merged 8 commits intodevelopfrom
update/phpunit-workflow

Conversation

@dkotter
Copy link
Copy Markdown
Collaborator

@dkotter dkotter commented Feb 18, 2026

Description of the Change

Our PHPUnit workflow has started to fail and in investigating that, seems GitHub has updated their default version of Docker that is installed in their runners and that is conflicting with the tool we use to run our tests. That tool hasn't been updated since June 2024 so I'm not confident they'll push out a fix.

Also, there's a better way to run PHPUnit tests now that didn't exist/we didn't know about when we set this up (using wp-env) so this is a good opportunity to clean up that setup.

The following updates are made:

  • We update our GitHub Action workflow to use the wp-env environment to run our PHPUnit tests (and run those on a wider matrix)
  • Update our various config and bootstrap files as needed
  • Fixes a few PHP 8+ issues

Note most of this was copied from the approach we took on ClassifAI.

How to test the Change

Ensure the PHPUnit GitHub Action runs and passes on this PR

Changelog Entry

Developer - Update our PHPUnit workflow

Credits

Props @dkotter

Checklist:

@dkotter dkotter requested a review from jeffpaul as a code owner February 18, 2026 19:38
@dkotter dkotter requested review from peterwilsoncc and removed request for jeffpaul February 18, 2026 19:38
@dkotter dkotter self-assigned this Feb 18, 2026
@dkotter dkotter added this to the 7.7.0 milestone Feb 18, 2026
@github-actions github-actions bot added the needs:code-review This requires code review. label Feb 18, 2026
@jeffpaul jeffpaul moved this to Code Review in Open Source Practice Feb 18, 2026
@github-project-automation github-project-automation bot moved this from Code Review to QA Testing in Open Source Practice Feb 24, 2026
@peterwilsoncc
Copy link
Copy Markdown
Contributor

This looks good to me, actions are passing.

Due to the rename of the test this will need to be merged by an admin and the repo settings updated to require the tests under their new name.

@dkotter dkotter merged commit 17efc91 into develop Feb 25, 2026
25 checks passed
@dkotter dkotter deleted the update/phpunit-workflow branch February 25, 2026 15:17
@github-project-automation github-project-automation bot moved this from QA Testing to Done in Open Source Practice Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:code-review This requires code review.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants