Skip to content

Commit 87c9b2f

Browse files
authored
Merge pull request #77 from verscheures/add-minio-github-action
Add Minio to github actions to use in test suite
2 parents 3372529 + 847754a commit 87c9b2f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/go.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,12 @@ jobs:
2929
go-version: ${{ matrix.go }}
3030
- name: Build
3131
run: go build -v ./...
32+
- name: Start MinIO (emulates S3)
33+
run: |
34+
wget -q https://dl.min.io/server/minio/release/linux-amd64/minio
35+
chmod +x minio
36+
export MINIO_ROOT_USER=minioadmin
37+
export MINIO_ROOT_PASSWORD=minioadmin
38+
./minio server /tmp/minio --address 127.0.0.1:4730 --quiet &
3239
- name: Test
3340
run: ./test.sh

test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
if [ ! -z "$SIMPLEBLOB_TEST_S3_CONFIG" ]; then
44
echo "* Using existing SIMPLEBLOB_TEST_S3_CONFIG=$SIMPLEBLOB_TEST_S3_CONFIG"
55
elif 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"
88
else
9-
echo "* MinIO not running in Docker Compose, skipping S3 tests"
9+
echo "* MinIO not running on localhost, skipping S3 tests"
1010
fi
1111

1212
set -ex

0 commit comments

Comments
 (0)