Skip to content

Commit 47b9e58

Browse files
committed
wip
1 parent 18b6af3 commit 47b9e58

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,17 @@ jobs:
7575
7676
- name: Install WordPress
7777
run: |
78-
cp wordpress/wp-config-sample.php wordpress/wp-config.php
79-
wp config set DB_NAME "$WP_DB_NAME" --path=wordpress --allow-root
80-
wp config set DB_USER "$WP_DB_USER" --path=wordpress --allow-root
81-
wp config set DB_PASSWORD "$WP_DB_PASS" --path=wordpress --allow-root
82-
wp config set DB_HOST "$WP_DB_HOST" --path=wordpress --allow-root
83-
wp config set WP_DEBUG true --raw --path=wordpress --allow-root
84-
wp config set WP_DEBUG_LOG true --raw --path=wordpress --allow-root
78+
wp config create \
79+
--dbname="$WP_DB_NAME" \
80+
--dbuser="$WP_DB_USER" \
81+
--dbpass="$WP_DB_PASS" \
82+
--dbhost="$WP_DB_HOST" \
83+
--path=wordpress \
84+
--skip-check \
85+
--extra-php <<PHP
86+
define( 'WP_DEBUG', true );
87+
define( 'WP_DEBUG_LOG', true );
88+
PHP
8589
wp core install \
8690
--url="${WP_SITE_URL}" \
8791
--title="Test Site" \

0 commit comments

Comments
 (0)