-
Notifications
You must be signed in to change notification settings - Fork 1
Establish CI infrastructure and test framework #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
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
Adds standardised Dependabot configuration to automate dependency updates for GitHub Actions and Composer packages. This aligns with other Automattic plugins and reduces maintenance overhead by keeping dependencies current. Configuration uses weekly schedules with grouping to minimise PR noise whilst ensuring timely security and compatibility updates. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Establishes the foundation for unit and integration testing with PHPUnit 9 and yoast/wp-test-utils. The test infrastructure uses Brain Monkey for unit tests (without WordPress) and the WordPress test harness for integration tests via wp-env. Adds composer scripts for running tests: - test:unit: Run unit tests with Brain Monkey - test:integration: Run integration tests in wp-env - test:integration-ms: Run integration tests in multisite mode - coverage: Generate HTML coverage report 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Updates ignore files with consistent patterns. The .gitignore now properly excludes local config overrides like .wp-env.override.json, and .distignore ensures dev files are excluded from distributions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
194f204 to
dee57f1
Compare
Adds automated CI pipelines for code quality and testing: - cs-lint.yml: PHPCS, PHP linting, and XML validation - integration.yml: PHPUnit integration tests via wp-env Tests run on PHP 8.2+ with WordPress 6.4 and latest versions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
dee57f1 to
fe2978b
Compare
The plugin requires WordPress 6.6 or higher, so the integration tests need to use 6.6 as the minimum test version instead of 6.4. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Replace individual rule exclusions with a complete tests directory exclusion, matching the approach used in other plugins like zoninator and co-authors-plus. Test files have different coding requirements. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Use WPIntegration\get_path_to_wp_test_dir() to locate the WordPress test library instead of relying on WP_PHPUNIT__DIR environment variable which isn't set in wp-env containers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
finfo_close() is deprecated in PHP 8.5+ as finfo resources are now automatically managed. Removing the explicit close call for forward compatibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
The plugin uses an anonymous function with add_action(), so check for the registered action instead of a named function that doesn't exist. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
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.
This pull request establishes comprehensive CI infrastructure for the plugin.
Summary
Test plan
🤖 Generated with Claude Code