ci: fix sequence
Some checks failed
PHP_CodeSniffer / phpcs (push) Has been cancelled
Unit Testing / phpunit (5.6, 6.2) (push) Failing after 4m57s
Unit Testing / phpunit (7.0) (push) Failing after 4m51s
Unit Testing / phpunit (7.2) (push) Failing after 4m51s
Unit Testing / phpunit (7.3) (push) Failing after 5m47s
Unit Testing / phpunit (7.4) (push) Failing after 6m22s
Unit Testing / phpunit (8.0) (push) Failing after 6m4s
Unit Testing / phpunit (8.1) (push) Failing after 5m29s
Unit Testing / phpunit (8.2) (push) Failing after 6m3s
Unit Testing / phpunit (latest) (push) Failing after 5m42s

This commit is contained in:
André Menrath 2023-12-04 23:09:38 +01:00
parent 1d6493212c
commit 466ed7dc2b

View file

@ -140,13 +140,14 @@ recreate_db() {
create_db() {
mysqladmin create $DB_NAME --user="$DB_USER" --password="$DB_PASS" $EXTRA
mysql -u root -p "${DB_PASS}" -e "GRANT ALL PRIVILEGES ON *.* TO '${DB_USER}'@'localhost' IDENTIFIED BY '${DB_PASS}' WITH GRANT OPTION; FLUSH PRIVILEGES;"
}
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}'@'localhost' IDENTIFIED BY '${DB_PASS}' WITH GRANT OPTION; FLUSH PRIVILEGES;"
if [ ${SKIP_DB_CREATE} = "true" ]; then
return 0