diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml index 064ed4b9..72d220ee 100644 --- a/.github/workflows/test-unit.yml +++ b/.github/workflows/test-unit.yml @@ -108,7 +108,9 @@ jobs: - name: Init run: | + php -r '(new PDO("mysql:host=mysql", "root", "test_pass_root"))->exec("CREATE DATABASE '"'"'test'"'"'");' php -r '(new PDO("mysql:host=mysql", "root", "test_pass_root"))->exec("ALTER USER '"'"'test_user'"'"'@'"'"'%'"'"' WITH MAX_USER_CONNECTIONS 5");' + php -r '(new PDO("pgsql:host=postgres;dbname=test_db", "test_user", "test_pass"))->exec("CREATE DATABASE '"'"'test'"'"'");' php -r '(new PDO("pgsql:host=postgres;dbname=test_db", "test_user", "test_pass"))->exec("ALTER ROLE test_user CONNECTION LIMIT 1");' if [ -n "$LOG_COVERAGE" ]; then mkdir coverage; fi