Skip to content

Commit f362ec2

Browse files
committed
update postgres in tests to 16.9
1 parent 34ebd06 commit f362ec2

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,15 @@ jobs:
99
name: Test
1010
runs-on: ubuntu-latest
1111
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
2714
steps:
2815
- name: Checkout sources
2916
uses: actions/checkout@v4
3017

18+
- name: Start containers
19+
run: docker compose up -d --wait
20+
3121
- name: Install stable toolchain
3222
uses: actions-rust-lang/setup-rust-toolchain@v1
3323
with:

docker-compose.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
version: '3.7'
22
services:
33
db:
4-
image: postgres:15.5
4+
image: postgres:16.9
55
environment:
66
POSTGRES_USER: bors
77
POSTGRES_PASSWORD: bors
88
POSTGRES_DB: bors
99
ports:
1010
- "5432:5432"
11+
healthcheck:
12+
test: ["CMD-SHELL", "pg_isready"]
13+
interval: 10s
14+
timeout: 5s
15+
retries: 5

0 commit comments

Comments
 (0)