Skip to content

Commit

Permalink
Testare postgres pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Duta-Sebastian committed Dec 20, 2024
1 parent fbe6c0c commit d0042e8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/actions/configure-PostgreSQL/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,7 @@ runs:
run: |
sudo apt-get update && sudo apt-get install -y postgresql
sudo systemctl start postgresql
PG_IDENT_CONF="/etc/postgresql/14/main/pg_ident.conf"
PG_HBA_CONF="/etc/postgresql/14/main/pg_hba.conf"
sudo bash -c "echo 'user1 runner postgres' >> $PG_IDENT_CONF"
sudo bash -c "echo 'local all postgres peer' >> $PG_HBA_CONF"
sudo systemctl restart postgresql
echo $(whoami)
sudo ln -s /tmp/.s.PGSQL.5432 /var/run/postgresql/.s.PGSQL.5432
psql -U postgres -c "CREATE USER oop WITH PASSWORD 'ooppa55'; ALTER USER oop CREATEDB;"
psql -U postgres -c "CREATE DATABASE oop_db WITH OWNER oop;"
Expand All @@ -28,6 +20,7 @@ runs:
run: |
brew install postgresql && \
brew services start postgresql@14 && \
sleep(3) && \
psql postgres -c "CREATE USER oop WITH PASSWORD 'ooppa55'; ALTER USER oop CREATEDB;" && \
psql postgres -c "CREATE DATABASE oop_db WITH OWNER oop;"
Expand Down

0 comments on commit d0042e8

Please sign in to comment.