File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 8686 python -m venv venv
8787 . venv/bin/activate
8888 pip install --cache-dir ~/.cache/pip -r requirements.txt
89- - name : Wait for Postgres
90- run : |
91- echo "Waiting for Postgres..."
92- for i in {1..30}; do
93- pg_isready -h db -p 5432 -U postgres && echo "Postgres ready!" && exit 0
94- echo "Still waiting..."
95- sleep 2
96- done
97- echo "Postgres did not start!" && exit 1
9889 - name : Wait for Elasticsearch HTTP
9990 run : |
10091 echo "Waiting for Elasticsearch..."
@@ -106,6 +97,15 @@ jobs:
10697 done
10798 echo "Elasticsearch failed to start"
10899 exit 1
100+ - name : Wait for Postgres
101+ run : |
102+ echo "Waiting for Postgres..."
103+ for i in {1..30}; do
104+ pg_isready -h db -p 5432 -U postgres && echo "Postgres ready!" && exit 0
105+ echo "Still waiting..."
106+ sleep 2
107+ done
108+ echo "Postgres did not start!" && exit 1
109109 - name : Run Tests
110110 env :
111111 DB_HOST : db
You can’t perform that action at this time.
0 commit comments