From 113ac130ab5226fbdac0c56cae70d29ae7c9ca97 Mon Sep 17 00:00:00 2001 From: Michael O'Connell Date: Thu, 21 Mar 2024 16:16:18 -0500 Subject: [PATCH] grant create to postgres user --- .github/workflows/php.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index e8e3ece..5d55bd3 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -37,9 +37,10 @@ jobs: run: | sudo systemctl start postgresql pg_isready + - name: Create test postgres user run: | - sudo -u postgres psql --command="CREATE USER $PGSQL_USER PASSWORD '$PGSQL_PASS'" --command="\du" + sudo -u postgres psql --command="CREATE USER $PGSQL_USER PASSWORD '$PGSQL_PASS'" --command="GRANT CREATE ON DATABASE postgres TO $PGSQL_USER" - name: Validate composer.json and composer.lock run: composer validate --strict