ci: allow user to connect to db
Some checks failed
Unit Testing / phpunit (7.2) (push) Waiting to run
Unit Testing / phpunit (7.3) (push) Waiting to run
Unit Testing / phpunit (7.4) (push) Waiting to run
Unit Testing / phpunit (8.0) (push) Waiting to run
Unit Testing / phpunit (8.1) (push) Waiting to run
Unit Testing / phpunit (8.2) (push) Waiting to run
Unit Testing / phpunit (latest) (push) Waiting to run
PHP_CodeSniffer / phpcs (push) Has been cancelled
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m31s
Unit Testing / phpunit (7.0) (push) Has been cancelled

This commit is contained in:
André Menrath 2023-12-04 22:53:20 +01:00
parent e8bf3f8afa
commit 1305aea3d8

View file

@ -146,6 +146,7 @@ install_db() {
# the mariadb commands are not available on some self-hosted runner images
apt update && apt-get install mariadb-server mariadb-client -y
service mariadb start
mysql -u root -p"${DB_PASS}" -e "GRANT ALL PRIVILEGES ON *.* TO '${DB_USER}'@'${DB_HOST}' IDENTIFIED BY '${DB_PASS}' WITH GRANT OPTION; FLUSH PRIVILEGES;"
if [ ${SKIP_DB_CREATE} = "true" ]; then
return 0