Skip to content

Commit

Permalink
Refactor PostgreSQL setup in browser-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Oct 17, 2024
1 parent 8bb021e commit 8e8752a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/browser-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ jobs:
- name: Set up PostgreSQL
run: |
sudo systemctl start postgresql
sudo -u postgres psql -c "CREATE DATABASE coolify;"
sudo -u postgres psql -c "CREATE USER coolify WITH PASSWORD 'password';"
sudo -u postgres psql -c "ALTER ROLE coolify SET client_encoding TO 'utf8';"
sudo -u postgres psql -c "ALTER ROLE coolify SET default_transaction_isolation TO 'read committed';"
sudo -u postgres psql -c "ALTER ROLE coolify SET timezone TO 'UTC';"
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE coolify TO coolify;"
psql -c "CREATE DATABASE coolify;"
psql -c "CREATE USER coolify WITH PASSWORD 'password';"
psql -c "ALTER ROLE coolify SET client_encoding TO 'utf8';"
psql -c "ALTER ROLE coolify SET default_transaction_isolation TO 'read committed';"
psql -c "ALTER ROLE coolify SET timezone TO 'UTC';"
psql -c "GRANT ALL PRIVILEGES ON DATABASE coolify TO coolify;"
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand Down

0 comments on commit 8e8752a

Please sign in to comment.