Skip to content

Commit 52e67b6

Browse files
committed
fix: fix automated commit testing pipeline
1 parent 1c4f9d8 commit 52e67b6

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,31 @@ name: Build & Test
33
on:
44
pull_request:
55
branches: [ '*' ]
6+
push:
7+
branches: [ '*' ]
68
workflow_call:
79
workflow_dispatch:
810

911
jobs:
10-
run:
12+
test-run:
1113
runs-on: ubuntu-latest
14+
services:
15+
postgres:
16+
image: "postgres:13"
17+
ports:
18+
- "5432:5432"
19+
env:
20+
POSTGRES_USER: testuser
21+
POSTGRES_PASSWORD: testpwd
22+
POSTGRES_DB: coal
23+
options: >-
24+
--health-cmd pg_isready
25+
--health-interval 10s
26+
--health-timeout 5s
27+
--health-retries 5
28+
29+
env:
30+
PRISMA_DB_URL: postgresql://testuser:testpwd@localhost:5432/coal
1231

1332
steps:
1433
- name: Checkout repository

0 commit comments

Comments
 (0)