Skip to content

Commit fb28bf8

Browse files
committed
chore: Setup postgres for github action
1 parent efa7564 commit fb28bf8

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/mix-test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ jobs:
1212
name: Build and test
1313
runs-on: ubuntu-latest
1414

15+
services:
16+
postgres:
17+
image: postgres
18+
env:
19+
POSTGRES_PASSWORD: postgres
20+
options: >-
21+
--health-cmd pg_isready
22+
--health-interval 10s
23+
--health-timeout 5s
24+
--health-retries 5
25+
ports:
26+
- 5432:5432
27+
28+
1529
steps:
1630
- uses: actions/checkout@v2
1731
- name: Set up Elixir

0 commit comments

Comments
 (0)