Skip to content

Commit

Permalink
Different approach
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Apr 17, 2024
1 parent e312778 commit b9bb333
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:

- name: Install Postgresql
uses: ikalnytskyi/action-setup-postgres@v5
with:
username: sdss
id: postgres

- name: Install Q3C
Expand All @@ -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 }}

Expand Down

0 comments on commit b9bb333

Please sign in to comment.