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