From 331307f8b08d433d3290471bbd8c152816243555 Mon Sep 17 00:00:00 2001 From: marcusquinn <6428977+marcusquinn@users.noreply.github.com> Date: Sun, 16 Nov 2025 04:54:23 +0000 Subject: [PATCH] Add debugging and error handling to PHPUnit workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add verbose logging to install-wp-tests.sh step - Make mysqladmin create non-fatal (database may already exist) - Add echo statements to track installation progress This helps diagnose the "Install WordPress test suite" failure and prevents failures when database already exists. 🤖 Generated with [Qoder][https://qoder.com] --- .github/workflows/phpunit.yml | 3 +++ bin/install-wp-tests.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 9aa7218..76bd73e 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -51,7 +51,10 @@ jobs: - name: Install WordPress test suite run: | + set -e + echo "Installing WordPress test suite with multisite=${{ matrix.multisite }}" bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 ${{ matrix.wp }} false ${{ matrix.multisite && 'true' || 'false' }} + echo "WordPress test suite installed successfully" - name: Run PHPUnit tests run: | diff --git a/bin/install-wp-tests.sh b/bin/install-wp-tests.sh index 5c915de..bf50908 100755 --- a/bin/install-wp-tests.sh +++ b/bin/install-wp-tests.sh @@ -152,7 +152,7 @@ install_db() { fi fi - mysqladmin create "$DB_NAME" --user="$DB_USER" --password="$DB_PASS"$EXTRA + mysqladmin create "$DB_NAME" --user="$DB_USER" --password="$DB_PASS"$EXTRA || true } install_wp