Skip to content

Commit b804c39

Browse files
committed
ci: standardize postgres service and connection strings for backend tests
1 parent bd69afb commit b804c39

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ jobs:
4242
postgres:
4343
image: postgres:15
4444
env:
45-
POSTGRES_USER: user
45+
POSTGRES_USER: postgres
4646
POSTGRES_PASSWORD: password
4747
POSTGRES_DB: flowfi_test
4848
ports:
4949
- 5432:5432
5050
options: >-
51-
--health-cmd pg_isready
51+
--health-cmd "pg_isready -U postgres"
5252
--health-interval 10s
5353
--health-timeout 5s
5454
--health-retries 5
@@ -73,7 +73,7 @@ jobs:
7373
npx prisma db push --accept-data-loss --schema=prisma/schema.prisma
7474
working-directory: backend
7575
env:
76-
DATABASE_URL: postgresql://user:password@localhost:5432/flowfi_test
76+
DATABASE_URL: postgresql://postgres:password@127.0.0.1:5432/flowfi_test
7777

7878
- name: Build
7979
run: npm run build
@@ -83,7 +83,7 @@ jobs:
8383
run: npm test
8484
working-directory: backend
8585
env:
86-
DATABASE_URL: postgresql://user:password@localhost:5432/flowfi_test
86+
DATABASE_URL: postgresql://postgres:password@127.0.0.1:5432/flowfi_test
8787

8888
contracts:
8989
name: Soroban Contracts CI

0 commit comments

Comments
 (0)