Skip to content

Commit 044d970

Browse files
committed
DEBUG-COMMIT: Adjusting the CI YAML to directly add Postgres.
1 parent 531bb53 commit 044d970

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/backend-ci.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212

13+
services:
14+
postgres:
15+
image: postgres:18
16+
env:
17+
POSTGRES_DB: testdb
18+
POSTGRES_USER: postgres
19+
POSTGRES_PASSWORD: postgres
20+
ports:
21+
- 5432:5432
22+
# Wait for DB readiness
23+
options: >-
24+
--health-cmd="pg_isready -U postgres -d testdb"
25+
--health-interval=10s
26+
--health-timeout=5s
27+
--health-retries=5
28+
1329
steps:
1430
- name: Checkout repository
1531
uses: actions/checkout@v4
@@ -31,4 +47,7 @@ jobs:
3147
working-directory: ./springqpro-backend
3248
env:
3349
TESTCONTAINERS_RYUK_DISABLED: false
34-
TESTCONTAINERS_CHECKS_DISABLE: true
50+
TESTCONTAINERS_CHECKS_DISABLE: true
51+
SPRING_DATASOURCE_URL: jdbc:postgresql://localhost:5432/testdb
52+
SPRING_DATASOURCE_USERNAME: postgres
53+
SPRING_DATASOURCE_PASSWORD: postgres

0 commit comments

Comments
 (0)