Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
justlevine committed Oct 20, 2024
1 parent 500af31 commit ac4bdad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 2 additions & 3 deletions bin/install-test-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -81,15 +81,14 @@ 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.
echo -e "$(status_message "Installing 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)")"
Expand Down

0 comments on commit ac4bdad

Please sign in to comment.