Skip to content

Commit

Permalink
sleep until minio is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamman committed Sep 23, 2024
1 parent d182150 commit 601246b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,20 @@ jobs:
with:
fetch-depth: 0

- name: Standup MongoDB, MinIO and Arraylake API
- name: Stand up MinIO
run: |
docker compose up -d minio
docker compose exec -T minio mc alias set minio http://minio:9000 minio123 minio123
- name: Wait for MinIO to be ready
run: |
for i in {1..10}; do
if curl --silent --fail http://localhost:9000/minio/health/live; then
break
fi
sleep 3
done
- name: Use Python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v5
Expand Down

0 comments on commit 601246b

Please sign in to comment.