Skip to content

Commit 18f8666

Browse files
committed
BB-745: wait for services to boot to run tests
1 parent 8a0e86a commit 18f8666

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,18 @@ jobs:
203203
- name: Install node dependencies
204204
run: yarn install --ignore-engines --frozen-lockfile --network-concurrency 1
205205

206+
- name: Wait for services
207+
run: |
208+
echo "Waiting for Kafka..."
209+
timeout 60 bash -c 'until nc -z localhost 9092; do sleep 1; done'
210+
echo "Waiting for Zookeeper..."
211+
timeout 60 bash -c 'until nc -z localhost 2181; do sleep 1; done'
212+
echo "Waiting for Redis..."
213+
timeout 60 bash -c 'until nc -z localhost 6379; do sleep 1; done'
214+
echo "Waiting for MongoDB..."
215+
timeout 60 bash -c 'until nc -z localhost 27017; do sleep 1; done'
216+
echo "All services ready"
217+
206218
- name: Run ${{ matrix.testsuite }} tests
207219
uses: ./.github/actions/ft-test
208220
with:

0 commit comments

Comments
 (0)