From 589d2bb9a82b80e408113886e072d77a2cfea560 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 4 Feb 2021 21:17:00 +1100 Subject: [PATCH] Fixes for tests --- .github/workflows/phpunit.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 1286b767a370..49e91a3299fd 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -47,9 +47,11 @@ jobs: options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3 steps: + - name: Start mysql service run: | sudo /etc/init.d/mysql start + - name: Verify MariaDB connection env: DB_PORT: ${{ job.services.mariadb.ports[3306] }} @@ -59,6 +61,11 @@ jobs: while ! mysqladmin ping -h"127.0.0.1" -P"$DB_PORT" --silent; do sleep 1 done + + - name: Verify MySQL connection from container + run: | + mysql --host mysql -uroot -pninja -e "SHOW DATABASES" + - name: Setup PHP uses: shivammathur/setup-php@v2 with: