Skip to content

Commit 32b3f4b

Browse files
committed
GHA | reordering steps
1 parent 6dd50b0 commit 32b3f4b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,6 @@ jobs:
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

0 commit comments

Comments
 (0)