Fix problems in unit tests where DB access was attempted before DB was ready #13
1
.github/workflows/tests.yml
vendored
1
.github/workflows/tests.yml
vendored
@ -28,6 +28,7 @@ jobs:
|
|||||||
- run: bundle install
|
- run: bundle install
|
||||||
- name: Wait until Postgres is ready to accept connections
|
- name: Wait until Postgres is ready to accept connections
|
||||||
run: |
|
run: |
|
||||||
|
apt-get update && apt-get install -f -y postgresql-client
|
||||||
until pg_isready -h postgres -U postgres -d postgres
|
until pg_isready -h postgres -U postgres -d postgres
|
||||||
do
|
do
|
||||||
sleep 1
|
sleep 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user