From de7b8263839ea9dad3680cf6df5cf016e1805afe Mon Sep 17 00:00:00 2001 From: peptiderepo <273788462+peptiderepo@users.noreply.github.com> Date: Tue, 14 Apr 2026 17:04:57 +0700 Subject: [PATCH] ci: WP_CORE_DIR needs trailing slash for ABSPATH substitution The wp-tests-config.php substitution copies WP_CORE_DIR into ABSPATH verbatim, then later WordPress concatenates wp-settings.php. Without the trailing slash you get /tmp/wordpresswp-settings.php. Agent-Session: cowork-pr-theme-tests-20260414 --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5edb6ee..d8f4479 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -99,7 +99,9 @@ jobs: - name: Install WordPress test suite env: WP_TESTS_DIR: /tmp/wordpress-tests-lib - WP_CORE_DIR: /tmp/wordpress + # Trailing slash matters: the bootstrap config substitutes this verbatim into ABSPATH, + # then concatenates 'wp-settings.php'. Without the slash you get '/tmp/wordpresswp-settings.php'. + WP_CORE_DIR: /tmp/wordpress/ run: | chmod +x bin/install-wp-tests.sh # 6th arg = skip-database-creation: the MySQL service already created wp_tests via MYSQL_DATABASE env.