File tree Expand file tree Collapse file tree 2 files changed +310
-1
lines changed Expand file tree Collapse file tree 2 files changed +310
-1
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ jobs:
267
267
- NAME : postgres
268
268
CFG : compile-gcc
269
269
COMPILER : gcc
270
- TEST_DB_PROVIDER : postgres
270
+ TEST_DB_PROVIDER : system- postgres
271
271
TEST_NETWORK : regtest
272
272
# And don't forget about elements (like cdecker did when
273
273
# reworking the CI...)
@@ -290,6 +290,19 @@ jobs:
290
290
COMPILER : gcc
291
291
TEST_NETWORK : regtest
292
292
EXPERIMENTAL_SPLICING : 1
293
+ services :
294
+ postgres :
295
+ # Docker Hub image
296
+ image : postgres
297
+ # Provide the password for postgres
298
+ env :
299
+ POSTGRES_PASSWORD : postgres
300
+ # Set health checks to wait until postgres has started
301
+ options : >-
302
+ --health-cmd pg_isready
303
+ --health-interval 10s
304
+ --health-timeout 5s
305
+ --health-retries 5
293
306
steps :
294
307
- name : Checkout
295
308
uses : actions/checkout@v4
@@ -340,6 +353,8 @@ jobs:
340
353
TEST_DB_PROVIDER : ${{ matrix.TEST_DB_PROVIDER }}
341
354
TEST_NETWORK : ${{ matrix.TEST_NETWORK }}
342
355
LIGHTNINGD_POSTGRES_NO_VACUUM : 1
356
+ # Yes, that DSN is silly :-) It's only used for the TEST_DB_PROVIDER=system-postgres
357
+ CLN_TEST_POSTGRES_DSN : postgres://postgres:postgres@postgress:5432/postgres
343
358
run : |
344
359
env
345
360
cat config.vars
You can’t perform that action at this time.
0 commit comments