Skip to content

Commit e3c1ce3

Browse files
fix: Skip database creation in install-wp-tests.sh
- Pass 'true' as 6th parameter to skip_database_creation - Database is already created in previous MySQL setup step - Prevents 'database exists' error from mysqladmin
1 parent a0c010f commit e3c1ce3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,13 @@ jobs:
324324
sudo systemctl start mysql.service
325325
mysql -e "DROP DATABASE IF EXISTS wordpress_test;" -uroot -proot
326326
mysql -e "CREATE DATABASE wordpress_test;" -uroot -proot
327+
echo "✅ Database wordpress_test created"
327328
328329
- name: 🐘 Install WordPress Test Suite
329330
run: |
330331
echo "📦 Installing WordPress Test Suite..."
331-
bash scripts/install-wp-tests.sh wordpress_test root 'root' localhost latest
332+
# Set skip_database_creation to true since we already created the database
333+
bash scripts/install-wp-tests.sh wordpress_test root 'root' localhost latest true
332334
echo "✅ WordPress Test Suite installed"
333335
334336
- name: 🧪 Run unit tests

0 commit comments

Comments
 (0)