-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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://[email protected]:5432/$USER -c "SELECT 1" > /dev/null | ||
|