chore: check if postgres is ready in CI
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
Joao P Dubas 2022-04-22 11:08:14 +00:00
parent 38d2ce5fe8
commit 0c62f2474f

View File

@ -10,6 +10,14 @@ trigger:
- pull_request - pull_request
steps: steps:
- name: database healthcheck
image: 'postgres:14.2-alpine'
environment:
PGUSER: postgres
PGPASSWORD: postgres
PGHOST: db
commands:
- while ! pg_isready; do sleep 1; done
- name: test - name: test
image: 'elixir:1.13.4' image: 'elixir:1.13.4'
environemnt: environemnt: