File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 3030        go-version : ${{ matrix.go }} 
3131    - name : Build 
3232      run : go build -v ./... 
33+     - name : Start MinIO (emulates S3) 
34+       run : | 
35+         wget -q https://dl.min.io/server/minio/release/linux-amd64/minio 
36+         chmod +x minio 
37+         export MINIO_ROOT_USER=minioadmin 
38+         export MINIO_ROOT_PASSWORD=minioadmin 
39+         ./minio server /tmp/minio --address 127.0.0.1:4730 --quiet & 
3340name : Test 
3441      run : ./test.sh 
Original file line number Diff line number Diff line change 33if  [ !  -z  " $SIMPLEBLOB_TEST_S3_CONFIG " ;  then 
44    echo  " * Using existing SIMPLEBLOB_TEST_S3_CONFIG=$SIMPLEBLOB_TEST_S3_CONFIG " 
55elif  curl -v --connect-timeout 2 http://localhost:4730/ 2>&1  |  grep --silent MinIO ;  then 
6-     echo  " * Using MinIO in Docker Compose  for tests" 
6+     echo  " * Using MinIO on localhost  for tests" 
77    export  SIMPLEBLOB_TEST_S3_CONFIG=" $PWD /docker/test-minio.json" 
88else 
9-     echo  " * MinIO not running in Docker Compose , skipping S3 tests" 
9+     echo  " * MinIO not running on localhost , skipping S3 tests" 
1010fi 
1111
1212set  -ex
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments