Skip to content

Commit 50caa64

Browse files
committed
ci: start Postgres via docker-compose.test.yml so CI and local share one config
1 parent b2fda3d commit 50caa64

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,13 @@ jobs:
1313
defaults:
1414
run:
1515
working-directory: ./api
16-
services:
17-
postgres:
18-
image: postgres:15-alpine
19-
env:
20-
POSTGRES_USER: kenku
21-
POSTGRES_PASSWORD: kenku_test
22-
POSTGRES_DB: postgres
23-
ports:
24-
- 5433:5432
25-
options: >-
26-
--health-cmd pg_isready
27-
--health-interval 5s
28-
--health-timeout 5s
29-
--health-retries 5
3016
steps:
3117
- name: Checkout
3218
uses: actions/checkout@v6
3319

20+
- name: Start Postgres
21+
run: docker compose -f docker-compose.test.yml up -d --wait
22+
3423
- name: Set up .NET
3524
uses: actions/setup-dotnet@v5
3625
with:

0 commit comments

Comments
 (0)