From c4eeb0a61ef579c21b0382edd61c62adebe93b28 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 27 Aug 2023 10:15:13 +0200 Subject: [PATCH] [CI] enable minio tests (cherry picked from commit 4d8f4380311b872061bd20f561424662ecd8d817) --- .forgejo/workflows/testing.yml | 11 +++++++++++ modules/storage/minio_test.go | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/testing.yml b/.forgejo/workflows/testing.yml index 05732ed42a..06d1b4fa21 100644 --- a/.forgejo/workflows/testing.yml +++ b/.forgejo/workflows/testing.yml @@ -35,6 +35,12 @@ jobs: needs: [lint-backend, checks-backend] container: image: codeberg.org/forgejo/test_env:main + services: + minio: + image: bitnami/minio:2021.3.17 + env: + MINIO_ACCESS_KEY: 123456 + MINIO_SECRET_KEY: 12345678 steps: - uses: https://code.forgejo.org/actions/checkout@v3 - uses: https://code.forgejo.org/actions/setup-go@v4 @@ -98,6 +104,11 @@ jobs: container: image: codeberg.org/forgejo/test_env:main services: + minio: + image: bitnami/minio:2021.3.17 + env: + MINIO_ACCESS_KEY: 123456 + MINIO_SECRET_KEY: 12345678 pgsql: image: postgres:15 env: diff --git a/modules/storage/minio_test.go b/modules/storage/minio_test.go index af392b7e22..8fdf31e6cf 100644 --- a/modules/storage/minio_test.go +++ b/modules/storage/minio_test.go @@ -17,7 +17,7 @@ func TestMinioStorageIterator(t *testing.T) { } testStorageIterator(t, setting.MinioStorageType, &setting.Storage{ MinioConfig: setting.MinioStorageConfig{ - Endpoint: "127.0.0.1:9000", + Endpoint: "minio:9000", AccessKeyID: "123456", SecretAccessKey: "12345678", Bucket: "gitea",