File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ jobs:
208208 docker_build_and_test :
209209 name : Build and test mgconsole in Docker container
210210 runs-on : ubuntu-latest
211+ timeout-minutes : 5
211212 steps :
212213 - name : Checkout repository
213214 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -220,6 +221,22 @@ jobs:
220221 run : |
221222 docker run --rm -d --name memgraph --network host memgraph/memgraph:latest --telemetry-enabled=false
222223
224+ - name : Wait for Memgraph Bolt
225+ run : |
226+ host=127.0.0.1
227+ port=7687
228+ max_attempts=120
229+ delay=1
230+ for attempt in $(seq 1 "$max_attempts"); do
231+ if bash -c "echo >/dev/tcp/${host}/${port}" 2>/dev/null; then
232+ echo "Memgraph Bolt port open at ${host}:${port}"
233+ exit 0
234+ fi
235+ sleep "$delay"
236+ done
237+ echo "Timeout waiting for Memgraph Bolt at ${host}:${port}"
238+ exit 1
239+
223240 - name : Test mgconsole in Docker container
224241 run : |
225242 # Test pipe directly into docker run
You can’t perform that action at this time.
0 commit comments