diff --git a/.github/workflows/integration-testing.yml b/.github/workflows/integration-testing.yml index 818d8c9..405dd60 100644 --- a/.github/workflows/integration-testing.yml +++ b/.github/workflows/integration-testing.yml @@ -29,7 +29,7 @@ jobs: strategy: matrix: php: ["8.2", "8.1", "8.0"] - wordpress: ["6.6", "6.5", "6.4", "6.3", "6.2" ] + wordpress: ["6.6", "6.5", "6.4", "6.3", "6.2"] include: - php: "8.2" wordpress: "6.6" diff --git a/bin/install-test-env.sh b/bin/install-test-env.sh index f907c91..8acd711 100644 --- a/bin/install-test-env.sh +++ b/bin/install-test-env.sh @@ -18,7 +18,7 @@ WP_VERSION=${WP_VERSION:-"latest"} # Install the database. ## install_db() { - if [ "${SKIP_DB_CREATE}" == "true" ]; then + if [ "${SKIP_DB_CREATE}" = "true" ]; then return 0 fi @@ -81,7 +81,7 @@ configure_wordpress() { # Create a wp-config.php file if it doesn't exist. if [ ! -f "wp-config.php" ]; then echo -e "$(status_message "Creating wp-config.php file...")" - wp config create --dbname="$WORDPRESS_DB_NAME" --dbuser="$WORDPRESS_DB_USER" --dbpass="$WORDPRESS_DB_PASSWORD" --dbhost="$WORDPRESS_DB_HOST" --dbprefix="$WORDPRESS_TABLE_PREFIX" + wp config create --dbname="$WORDPRESS_DB_NAME" --dbuser="$WORDPRESS_DB_USER" --dbpass="$WORDPRESS_DB_PASSWORD" --dbhost="$WORDPRESS_DB_HOST" --dbprefix="$WORDPRESS_TABLE_PREFIX" --allow-root fi # Install WordPress. @@ -89,7 +89,6 @@ configure_wordpress() { SITE_TITLE=${WORDPRESS_SITE_TITLE:-"Headless Login Tests"} - wp core install --title="$SITE_TITLE" --admin_user="$WORDPRESS_ADMIN_USER" --admin_password="$WORDPRESS_ADMIN_PASSWORD" --admin_email="$WORDPRESS_ADMIN_EMAIL" --skip-email --url="$WORDPRESS_URL" --allow-root echo -e "$(status_message "Running WordPress version: $(wp core version --allow-root) at $(wp option get home --allow-root)")"