We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 531bb53 commit 044d970Copy full SHA for 044d970
1 file changed
.github/workflows/backend-ci.yml
@@ -10,6 +10,22 @@ jobs:
10
build:
11
runs-on: ubuntu-latest
12
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
+
29
steps:
30
- name: Checkout repository
31
uses: actions/checkout@v4
@@ -31,4 +47,7 @@ jobs:
47
working-directory: ./springqpro-backend
32
48
env:
33
49
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