From aa754a57b3d6cb6a28863e83fdce2b014863619d Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Fri, 25 Oct 2024 21:05:01 -0700 Subject: [PATCH] prepend --- .github/workflows/ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b34b0695..eec0442a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,11 +8,9 @@ jobs: steps: - name: Setup PostgreSQL run: | - echo "host all all 127.0.0.1/32 trust" | sudo tee -a /etc/postgresql/14/main/pg_hba.conf - sudo cat /etc/postgresql/14/main/pg_hba.conf - sudo service postgresql start - sudo service postgresql reload - sudo -u postgres psql -c 'SHOW hba_file' + echo "host all all 127.0.0.1/32 trust" | sudo tee /etc/postgresql/14/main/pg_hba.conf + echo "peer all all peer" | sudo tee -a /etc/postgresql/14/main/pg_hba.conf + sudo service postgresql restart sudo -u postgres createuser --superuser --login $USER createdb $USER psql postgres://$USER@127.0.0.1:5432/$USER -c "SELECT 1" > /dev/null