Skip to content

Tweak: Rearrange CI tests - #226

Open
KingYes wants to merge 6 commits into
new/request-sourcefrom
tweak/ci-env
Open

Tweak: Rearrange CI tests#226
KingYes wants to merge 6 commits into
new/request-sourcefrom
tweak/ci-env

Conversation

@KingYes

@KingYes KingYes commented Aug 13, 2026

Copy link
Copy Markdown
Member

✨ PR Description

1. Problem & Context

Modernize CI/test infrastructure: migrate from deprecated Travis CI to GitHub Actions, upgrade PHPUnit config, establish modern Composer-based dependency management, and add comprehensive test coverage tooling for PHP 7.4–8.3 across WordPress 6.8–latest.

2. What Changed (Where)

  • CI workflows: Added .github/workflows/phpunit.yml and php-coding-standards.yml; removed .travis.yml
  • Test bootstrap: New tests/phpunit/bootstrap.php with proper plugin loading; updated phpunit.xml with correct paths
  • Build config: Added composer.json (dependencies, lint/test scripts), ruleset.xml (PHPCS standards), .github/checkstyle-problem-matcher.json
  • Install script: Rewrote bin/install-wp-tests.sh with version resolution, SVN export fixes, DB host handling
  • Test fixes: Updated test-base.php queries (object_type from PostPosts); added comprehensive test-request-source.php
  • Docs: New tests/README.md with setup/troubleshooting; added .cursor/rules/run-tests-before-finish.mdc

3. How It Works

GitHub Actions matrix runs PHPUnit across 5 PHP versions × 4 WordPress versions concurrently. Bootstrap loads the plugin via muplugins_loaded hook after WordPress test harness. Modernized install script resolves WP versions (including nightly/trunk branches), handles DB creation interactively, and uses SVN export instead of checkout for faster setup. PHPCS linting runs separately with error matcher for PR annotations.

4. Risks

Minor: object_type value change (PostPosts) assumes DB consistency; verify existing logs aren't queried by old value. Install script now prompts for DB recreation—CI bypasses via SKIP_DB_CREATE=true, but manual runs need interaction awareness.

Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how

@wiz-9a149474ff

wiz-9a149474ff Bot commented Aug 13, 2026

Copy link
Copy Markdown

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities -
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations 4 Low
SAST Finding SAST Findings -
Software Management Finding Software Management Findings -
Total 4 Low

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant