Spaces:
Runtime error
Runtime error
Muhammad Abdullah commited on
Commit ·
f5edaa6
1
Parent(s): 8ddc1d0
Fix: Connect as postgres superuser to create test database
Browse files
.github/workflows/build-deploy.yml
CHANGED
|
@@ -58,7 +58,7 @@ jobs:
|
|
| 58 |
|
| 59 |
- name: Create test database
|
| 60 |
run: |
|
| 61 |
-
psql -h localhost -U
|
| 62 |
env:
|
| 63 |
PGPASSWORD: ${{ secrets.DATABASE_PASSWORD }}
|
| 64 |
|
|
|
|
| 58 |
|
| 59 |
- name: Create test database
|
| 60 |
run: |
|
| 61 |
+
psql -h localhost -U postgres -d postgres -c "CREATE DATABASE ${{ secrets.DATABASE_NAME }}_test;"
|
| 62 |
env:
|
| 63 |
PGPASSWORD: ${{ secrets.DATABASE_PASSWORD }}
|
| 64 |
|