Skip to content

Commit 3c07a97

Browse files
committed
Split DB preparation steps in two
1 parent a9c7d0c commit 3c07a97

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/testing.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,18 @@ jobs:
154154
if: steps.check_files.outputs.files_exists == 'true'
155155
run: sudo systemctl start mysql
156156

157-
- name: Prepare test database
157+
- name: Configure DB environment
158158
if: steps.check_files.outputs.files_exists == 'true'
159159
run: |
160160
export MYSQL_HOST=127.0.0.1
161161
export MYSQL_TCP_PORT=${{ job.services.mysql.ports['3306'] }}
162162
echo "WP_CLI_TEST_DBUSER=wp_cli_test" >> $GITHUB_ENV
163163
echo "WP_CLI_TEST_DBPASS=password1" >> $GITHUB_ENV
164164
echo "WP_CLI_TEST_DBHOST=$MYSQL_HOST:$MYSQL_TCP_PORT" >> $GITHUB_ENV
165-
composer prepare-tests
165+
166+
- name: Prepare test database
167+
if: steps.check_files.outputs.files_exists == 'true'
168+
run: composer prepare-tests
166169

167170
- name: Run Behat
168171
if: steps.check_files.outputs.files_exists == 'true'

0 commit comments

Comments
 (0)