Skip to content

Commit c942e51

Browse files
authored
Use current composer and remove legacy PHP compatibility code (#4583)
1 parent e10f064 commit c942e51

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

bin/run-ci-tests.bash

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,12 @@ IFS=$'\n\t'
77
# set environment variables
88
WC_STRIPE_DIR="$GITHUB_WORKSPACE"
99

10-
echo 'Updating composer version & Install dependencies...'
11-
composer self-update 2.0.6 && composer install --no-progress
10+
echo 'Install composer dependencies...'
11+
composer install --no-progress
1212

1313
echo 'Starting MySQL service...'
1414
sudo systemctl start mysql.service
1515

16-
# On GitHub actions, set MySQL authentication to mysql_native_password instead of caching_sha2_password
17-
# to prevent DB connection problems with PHP versions less than 7.4
18-
if [[ -n $CI ]]; then
19-
echo "Configuring MySQL to use mysql_native_password"
20-
mysql -uroot -proot -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; FLUSH PRIVILEGES;"
21-
fi
22-
2316
echo 'Setting up test environment...'
2417
bash bin/install-wp-tests.sh woocommerce_test root root localhost $WP_VERSION $WC_VERSION false
2518

0 commit comments

Comments
 (0)