Skip to content

Commit 30b4c6d

Browse files
committed
chore: add PostgreSQL service configuration to GitHub Actions workflow for testing
1 parent 078c0f1 commit 30b4c6d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/test-on-push.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ on:
88
jobs:
99
test:
1010
runs-on: ubuntu-latest
11+
services:
12+
postgres:
13+
image: postgres:latest
14+
env:
15+
POSTGRES_USER: rayhan
16+
POSTGRES_PASSWORD: rayhan123
17+
POSTGRES_DB: tinyorm_test
18+
ports:
19+
- 5432:5432
20+
options: >-
21+
--health-cmd "pg_isready -U rayhan"
22+
--health-interval 10s
23+
--health-timeout 5s
24+
--health-retries 5
1125
1226
steps:
1327
- name: Checkout code

0 commit comments

Comments
 (0)