File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : Testing
2
2
3
- on : pull_request
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - master
4
8
5
9
jobs :
6
10
@@ -155,14 +159,14 @@ jobs:
155
159
- name : Configure DB environment
156
160
if : steps.check_files.outputs.files_exists == 'true'
157
161
run : |
158
- export MYSQL_HOST=127.0.0.1
159
- export MYSQL_TCP_PORT=${{ job.services.mysql.ports['3306'] }}
162
+ echo " MYSQL_HOST=127.0.0.1" >> $GITHUB_ENV
163
+ echo " MYSQL_TCP_PORT=${{ job.services.mysql.ports['3306'] }}" >> $GITHUB_ENV
160
164
echo "WP_CLI_TEST_DBROOTUSER=root" >> $GITHUB_ENV
161
165
echo "WP_CLI_TEST_DBROOTPASS=root" >> $GITHUB_ENV
162
166
echo "WP_CLI_TEST_DBNAME=wp_cli_test" >> $GITHUB_ENV
163
167
echo "WP_CLI_TEST_DBUSER=wp_cli_test" >> $GITHUB_ENV
164
168
echo "WP_CLI_TEST_DBPASS=password1" >> $GITHUB_ENV
165
- echo "WP_CLI_TEST_DBHOST=$MYSQL_HOST:$MYSQL_TCP_PORT " >> $GITHUB_ENV
169
+ echo "WP_CLI_TEST_DBHOST=127.0.0.1:${{ job.services.mysql.ports['3306'] }} " >> $GITHUB_ENV
166
170
167
171
- name : Prepare test database
168
172
if : steps.check_files.outputs.files_exists == 'true'
You can’t perform that action at this time.
0 commit comments