This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new b060af98e ci(service/s3): Add docker-compose-minio file to simplify 
the CI (#2887)
b060af98e is described below

commit b060af98ed68230fb9afc56ddbb118d5fdc6c68e
Author: Yisheng Gong <[email protected]>
AuthorDate: Mon Aug 21 01:04:27 2023 -0700

    ci(service/s3): Add docker-compose-minio file to simplify the CI (#2887)
    
    * chore(services/s3): Add docker-compose file to simplify the CI
    
    * fix: remove dup steps
    
    * fix: license header
---
 .github/workflows/service_test_s3.yml              | 30 ++++++----------------
 .../services/s3/fixtures/docker-compose-minio.yml  | 27 +++++++++++++++++++
 2 files changed, 35 insertions(+), 22 deletions(-)

diff --git a/.github/workflows/service_test_s3.yml 
b/.github/workflows/service_test_s3.yml
index af05db2cf..8c12b6240 100644
--- a/.github/workflows/service_test_s3.yml
+++ b/.github/workflows/service_test_s3.yml
@@ -109,19 +109,12 @@ jobs:
 
   minio_s3:
     runs-on: ubuntu-latest
-
-    # Setup minio server
-    services:
-      minio:
-        image: wktk/minio-server
-        ports:
-          - 9000:9000
-        env:
-          MINIO_ACCESS_KEY: "minioadmin"
-          MINIO_SECRET_KEY: "minioadmin"
-
     steps:
       - uses: actions/checkout@v3
+      - name: Setup MinIO Server
+        shell: bash
+        working-directory: core/src/services/s3/fixtures
+        run: docker-compose -f docker-compose-minio.yml up -d
       - name: Setup test bucket
         env:
           AWS_ACCESS_KEY_ID: "minioadmin"
@@ -146,19 +139,12 @@ jobs:
 
   anonymous_minio_s3:
     runs-on: ubuntu-latest
-
-    # Setup minio server
-    services:
-      minio:
-        image: wktk/minio-server
-        ports:
-          - 9000:9000
-        env:
-          MINIO_ACCESS_KEY: "minioadmin"
-          MINIO_SECRET_KEY: "minioadmin"
-
     steps:
       - uses: actions/checkout@v3
+      - name: Setup MinIO Server
+        shell: bash
+        working-directory: core/src/services/s3/fixtures
+        run: docker-compose -f docker-compose-minio.yml up -d
       - name: Setup test bucket
         run: |
           curl -O https://dl.min.io/client/mc/release/linux-amd64/mc
diff --git a/core/src/services/s3/fixtures/docker-compose-minio.yml 
b/core/src/services/s3/fixtures/docker-compose-minio.yml
new file mode 100644
index 000000000..0e47e8d49
--- /dev/null
+++ b/core/src/services/s3/fixtures/docker-compose-minio.yml
@@ -0,0 +1,27 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+version: '3.8'
+
+services:
+  minio:
+    image: wktk/minio-server
+    ports:
+      - 9000:9000
+    environment:
+      MINIO_ACCESS_KEY: "minioadmin"
+      MINIO_SECRET_KEY: "minioadmin"

Reply via email to