We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f356999 commit 96e9c9eCopy full SHA for 96e9c9e
.github/workflows/wordpress-tests.yml
@@ -102,6 +102,10 @@ jobs:
102
- name: Setup WordPress Test Environment
103
if: steps.check-test-env.outputs.test_env_ready == 'true'
104
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
109
bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 ${{ matrix.wordpress }}
110
111
- name: Run tests
0 commit comments