Skip to content

Commit 867a7ba

Browse files
author
dcalixto
committed
Add PostgreSQL service to the GitHub Actions workflow
1 parent 2e44653 commit 867a7ba

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/crystal-test.yml

+16
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@ jobs:
1111
crystal_test:
1212
name: Crystal Test
1313
runs-on: ubuntu-latest
14+
15+
services:
16+
postgres:
17+
image: postgres:latest
18+
env:
19+
POSTGRES_PASSWORD: postgres
20+
POSTGRES_USER: postgres
21+
POSTGRES_DB: crystal_pg_test
22+
ports:
23+
- 5432:5432
24+
options: >-
25+
--health-cmd pg_isready
26+
--health-interval 10s
27+
--health-timeout 5s
28+
--health-retries 5
29+
1430
strategy:
1531
matrix:
1632
crystal-version: ["1.9", "1.10"]

0 commit comments

Comments
 (0)