From bd1897ef9f64083c243cfeca7d54eeda52805da0 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 23 Nov 2019 12:09:18 +0000 Subject: [PATCH] auth --- .github/workflows/tests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2564d041..61a9a154 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,9 +30,10 @@ jobs: if [[ "${{ matrix.database }}" == "pgsql" ]]; then sudo apt-get install -y postgresql postgresql-client ; psql --version ; - psql -c "SELECT set_config('log_statement', 'all', false);" -U postgres ; - psql -c "CREATE DATABASE shimmie;" -U postgres ; - echo ' data/config/auto_install.conf.php ; + sudo -u postgres psql -c "SELECT set_config('log_statement', 'all', false);" -U postgres ; + sudo -u postgres psql -c "CREATE USER shimmie WITH PASSWORD 'shimmie';" -U postgres ; + sudo -u postgres psql -c "CREATE DATABASE shimmie WITH OWNER shimmie;" -U postgres ; + echo ' data/config/auto_install.conf.php ; fi if [[ "${{ matrix.database }}" == "mysql" ]]; then mysql --version ;