From c1add58d26e29950a28a5c69161c4bce6edfede2 Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Fri, 25 Oct 2024 20:57:03 -0700 Subject: [PATCH] test connection --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0111d33e..399be47d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,10 +13,11 @@ jobs: override: true - name: Setup PostgreSQL run: | - sudo service postgresql start + echo "host all all 127.0.0.1/32 trust" | sudo tee -a /etc/postgresql/14/main/pg_hba.conf + sudo service postgresql restart sudo -u postgres createuser --superuser --login $USER createdb $USER - echo "host all all 127.0.0.1/32 trust" | sudo tee -a /etc/postgresql/14/main/pg_hba.conf + psql postgres://$USER@127.0.0.1:5432/$USER -c "SELECT 1" > /dev/null - name: Build run: cargo build - name: Format