Add GitHub Actions CI, bump minimum PHP to 7.4 and WP to 6.5#75
Open
Add GitHub Actions CI, bump minimum PHP to 7.4 and WP to 6.5#75
Conversation
Replaces Travis CI with a GitHub Actions workflow that runs PHPUnit against PHP 7.4–8.3 × WordPress 6.5/latest, plus a PHPCS job. Updates PHPUnit to ^9.6 and cleans up the phpunit.xml.dist for PHPUnit 9. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
- Add yoast/phpunit-polyfills (required by WP 5.9+ test bootstrap) - Define WP_TESTS_PHPUNIT_POLYFILLS_PATH in test bootstrap - Fix 3 pre-existing Yoda condition violations in inc/ Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…sion Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Tests cover Client CRUD and validation, Authorization_Code lifecycle, Access_Token creation and revocation for both user and client-credential tokens, the REST token endpoint (authorization code and client credentials grants), authentication helpers, and top-level namespace functions. Excludes tests/ directory from PHPCS since PHPUnit naming conventions conflict with WordPress file-name rules. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
WordPress 5.5 requires permission_callback on all REST routes. Both public endpoints get __return_true since they handle their own authentication internally. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
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.
Replaces Travis CI with a GitHub Actions workflow that runs PHPUnit against PHP 7.4–8.3 × WordPress 6.5/latest, plus a PHPCS job. Updates PHPUnit to ^9.6 and cleans up the phpunit.xml.dist for PHPUnit 9.