From b9bb333eec37670240dfdef2470a6022c30c5931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Wed, 17 Apr 2024 23:11:52 +0000 Subject: [PATCH] Different approach --- .github/workflows/test.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9bca550..7924fa3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,6 +35,8 @@ jobs: - name: Install Postgresql uses: ikalnytskyi/action-setup-postgres@v5 + with: + username: sdss id: postgres - name: Install Q3C @@ -49,19 +51,10 @@ jobs: env: PGSERVICE: ${{ steps.postgres.outputs.service-name }} - - name: Create database and user + - name: Create database run: | createdb sdss5db_too_test psql -c "CREATE EXTENSION q3c;" -d sdss5db_too_test - psql -c "CREATE USER sdss WITH LOGIN SUPERUSER PASSWORD 'p1234';" -d sdss5db_too_test - echo "*:*:sdss5db_too_test:sdss:p1234" > ~/.pgpass - chmod 600 ~/.pgpass - env: - PGSERVICE: ${{ steps.postgres.outputs.service-name }} - - - name: Test connection - run: | - psql -c "\du" -U sdss -d sdss5db_too_test env: PGSERVICE: ${{ steps.postgres.outputs.service-name }}