File tree Expand file tree Collapse file tree 2 files changed +11
-16
lines changed Expand file tree Collapse file tree 2 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 9
9
name : Test
10
10
runs-on : ubuntu-latest
11
11
env :
12
- DATABASE_URL : postgres://postgres:password@localhost:5432/test
13
- services :
14
- postgres :
15
- image : postgres:16
16
- env :
17
- POSTGRES_USER : postgres
18
- POSTGRES_PASSWORD : password
19
- POSTGRES_DB : test
20
- ports :
21
- - 5432:5432
22
- options : >-
23
- --health-cmd pg_isready
24
- --health-interval 10s
25
- --health-timeout 5s
26
- --health-retries 5
12
+ # Matches docker-compose.yaml
13
+ DATABASE_URL : postgres://bors:bors@localhost:5432/bors
27
14
steps :
28
15
- name : Checkout sources
29
16
uses : actions/checkout@v4
30
17
18
+ - name : Start containers
19
+ run : docker compose up -d --wait
20
+
31
21
- name : Install stable toolchain
32
22
uses : actions-rust-lang/setup-rust-toolchain@v1
33
23
with :
Original file line number Diff line number Diff line change 1
1
version : ' 3.7'
2
2
services :
3
3
db :
4
- image : postgres:15.5
4
+ image : postgres:16.9
5
5
environment :
6
6
POSTGRES_USER : bors
7
7
POSTGRES_PASSWORD : bors
8
8
POSTGRES_DB : bors
9
9
ports :
10
10
- " 5432:5432"
11
+ healthcheck :
12
+ test : ["CMD-SHELL", "pg_isready"]
13
+ interval : 10s
14
+ timeout : 5s
15
+ retries : 5
You can’t perform that action at this time.
0 commit comments