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 }}