fix: install mariadb client

GitHub action's Ubuntu 20.04 image has mysql8 tooling which is not
compatible with mariadb.
This commit is contained in:
Ankush Menat 2021-09-12 18:10:14 +05:30
parent 049df53cd8
commit eb4e94f52d
No known key found for this signature in database
GPG key ID: 8EA82E09BBD13AAF

View file

@ -17,6 +17,7 @@ if [ "$TYPE" == "server" ]; then
fi
if [ "$DB" == "mariadb" ];then
sudo apt install mariadb-client-10.3
mysql --host 127.0.0.1 --port 3306 -u root -e "SET GLOBAL character_set_server = 'utf8mb4'";
mysql --host 127.0.0.1 --port 3306 -u root -e "SET GLOBAL collation_server = 'utf8mb4_unicode_ci'";
@ -58,4 +59,4 @@ cd ../..
bench start &
bench --site test_site reinstall --yes
if [ "$TYPE" == "server" ]; then bench --site test_site_producer reinstall --yes; fi
bench build --app frappe
bench build --app frappe