move command ot options #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- main | |
- test/ci-with-minio | |
pull_request: | |
jobs: | |
minio-test: | |
runs-on: ubuntu-latest | |
services: | |
minio: | |
image: quay.io/minio/minio | |
env: | |
MINIO_ROOT_USER: minioadmin | |
MINIO_ROOT_PASSWORD: minioadmin | |
ports: | |
- 9000:9000 | |
options: >- | |
--health-cmd="curl --silent --fail http://localhost:9000/minio/health/live || exit 1" | |
--health-interval=5s | |
--health-timeout=10s | |
--health-retries=5 | |
server /data | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- 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: Install MinIO client (mc) | |
run: | | |
wget https://dl.min.io/client/mc/release/linux-amd64/mc | |
chmod +x mc | |
sudo mv mc /usr/local/bin/ | |
- name: Create test bucket | |
run: | | |
mc alias set minio http://localhost:9000 minioadmin minioadmin | |
mc mb minio/test-bucket | |
- name: Run tests | |
run: | | |
# Add commands to run your tests here | |
echo "Running tests against MinIO..." | |
# Example: | |
# pytest --minio-endpoint http://localhost:9000 --bucket test-bucket |