Skip to content

Commit

Permalink
Set pg password in tests to empty
Browse files Browse the repository at this point in the history
  • Loading branch information
dorthrithil committed Mar 13, 2024
1 parent d86d52d commit 8300639
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/backend-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
image: postgres:14-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_PASSWORD: ''
POSTGRES_DB: localcrag_test
ports:
- 5432:5432
Expand Down Expand Up @@ -39,8 +39,8 @@ jobs:
- name: Setup database
run: |
export PGPASSWORD='postgres'; psql -h 0.0.0.0 -p 5432 -U postgres -d localcrag_test < server/scripts/create_uuid_extension.sql
export PGPASSWORD='postgres'; pg_restore --no-privileges --no-owner -h 0.0.0.0 -p 5432 -U postgres -d localcrag_test server/tests/dumps/localcrag_test_dump.sql
export PGPASSWORD=''; psql -h 0.0.0.0 -p 5432 -U postgres -d localcrag_test < server/scripts/create_uuid_extension.sql
export PGPASSWORD=''; pg_restore --no-privileges --no-owner -h 0.0.0.0 -p 5432 -U postgres -d localcrag_test server/tests/dumps/localcrag_test_dump.sql
- name: Run Tests
run: |
Expand Down

0 comments on commit 8300639

Please sign in to comment.