Skip to content

Commit 96e9c9e

Browse files
authored
Workflow update
1 parent f356999 commit 96e9c9e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/wordpress-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ jobs:
102102
- name: Setup WordPress Test Environment
103103
if: steps.check-test-env.outputs.test_env_ready == 'true'
104104
run: |
105+
if mysql -u root -h 127.0.0.1 -e "USE wordpress_test;" 2>/dev/null; then
106+
echo "Database 'wordpress_test' already exists. Dropping it first."
107+
mysql -u root -h 127.0.0.1 -e "DROP DATABASE wordpress_test;"
108+
fi
105109
bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 ${{ matrix.wordpress }}
106110
107111
- name: Run tests

0 commit comments

Comments
 (0)