diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 407e840..4979820 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -56,38 +56,24 @@ jobs: - name: Setup S3 run: | - # Download and install mc (MinIO Client) + # Download and install mc wget https://dl.min.io/client/mc/release/linux-amd64/mc chmod +x mc sudo mv mc /usr/local/bin/ - # Wait for MinIO with a simpler check - echo "Waiting for MinIO to start..." - for i in {1..30}; do - if curl -s http://localhost:9000/minio/health/ready > /dev/null 2>&1; then - echo "MinIO is ready!" - break - fi - echo "Attempt $i: MinIO not ready yet..." - docker logs minio || true # Show container logs for debugging - sleep 3 - done + # Simple wait - just try connecting + echo "Waiting for MinIO..." + sleep 10 # Give it a moment to start - # Check if MinIO is actually running - docker ps | grep minio || echo "MinIO container is not running!" + # Check if it's running + curl -v http://localhost:9000 || echo "Connection failed" - # Configure mc to use MinIO - mc alias set localminio http://localhost:9000 test test - - # Create the bucket - BUCKET_NAME="soaricarus-ci-bucket" - mc mb localminio/$BUCKET_NAME - - # Verify bucket was created + # Try to configure and create bucket + mc alias set localminio http://localhost:9000 test test || echo "mc config failed" + mc mb localminio/soaricarus-ci-bucket || echo "Bucket creation failed" mc ls localminio/ - - # Set bucket name for test step - echo "BUCKET_NAME=$BUCKET_NAME" >> $GITHUB_ENV + + echo "S3_BUCKET_NAME=soaricarus-ci-bucket" >> $GITHUB_ENV env: AWS_ACCESS_KEY_ID: ${{ secrets.GARAGE_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.GARAGE_SECRET }}