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

suyanhanx pushed a commit to branch gdrive-test-planner
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit 42c926e7248b81ad1f8f5afc5e8f7d97ea0fac18
Author: suyanhanx <[email protected]>
AuthorDate: Tue Oct 24 15:05:09 2023 +0800

    refactor(services/gdrive): migrate to test planner
    
    Signed-off-by: suyanhanx <[email protected]>
---
 .github/services/etcd/etcd/action.yml              |  2 +-
 .../{etcd/etcd => gdrive/gdrive}/action.yml        | 22 ++++++++++------------
 .github/services/http/caddy/action.yml             |  2 +-
 .github/services/http/nginx/action.yml             |  2 +-
 4 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/.github/services/etcd/etcd/action.yml 
b/.github/services/etcd/etcd/action.yml
index 56497215d..4fe627904 100644
--- a/.github/services/etcd/etcd/action.yml
+++ b/.github/services/etcd/etcd/action.yml
@@ -16,7 +16,7 @@
 # under the License.
 
 name: etcd
-description: 'Behavior test for etcd stanlone'
+description: 'Behavior test for etcd standalone'
 
 runs:
   using: "composite"
diff --git a/.github/services/etcd/etcd/action.yml 
b/.github/services/gdrive/gdrive/action.yml
similarity index 66%
copy from .github/services/etcd/etcd/action.yml
copy to .github/services/gdrive/gdrive/action.yml
index 56497215d..5c6840850 100644
--- a/.github/services/etcd/etcd/action.yml
+++ b/.github/services/gdrive/gdrive/action.yml
@@ -15,20 +15,18 @@
 # specific language governing permissions and limitations
 # under the License.
 
-name: etcd
-description: 'Behavior test for etcd stanlone'
+name: gdrive
+description: 'Behavior test for Google Drive'
 
 runs:
   using: "composite"
   steps:
-    - name: Setup etcd cluster
-      shell: bash
-      working-directory: fixtures/etcd
-      run: docker-compose -f docker-compose-stanlone.yml up -d
     - name: Setup
-      shell: bash
-      run: |
-        cat << EOF >> $GITHUB_ENV
-        OPENDAL_ETCD_ENDPOINTS=http://127.0.0.1:2379
-        OPENDAL_ETCD_ROOT=/tmp/opendal
-        EOF
+      uses: 1password/load-secrets-action@v1
+      with:
+        export-env: true
+      env:
+        OPENDAL_GDRIVE_ROOT: op://services/gdrive/root
+        OPENDAL_GDRIVE_REFRESH_TOKEN: op://services/gdrive/refresh_token
+        OPENDAL_GDRIVE_CLIENT_ID: op://services/gdrive/client_id
+        OPENDAL_GDRIVE_CLIENT_SECRET: op://services/gdrive/client_secret
diff --git a/.github/services/http/caddy/action.yml 
b/.github/services/http/caddy/action.yml
index 15f5c6295..aeb887786 100644
--- a/.github/services/http/caddy/action.yml
+++ b/.github/services/http/caddy/action.yml
@@ -21,7 +21,7 @@ description: 'Behavior test for http service in caddy'
 runs:
   using: "composite"
   steps:
-    - name: Setup etcd cluster
+    - name: Setup http in caddy
       shell: bash
       working-directory: fixtures/http
       run: docker-compose -f docker-compose-caddy.yml up -d
diff --git a/.github/services/http/nginx/action.yml 
b/.github/services/http/nginx/action.yml
index 752eca853..2dba9a28b 100644
--- a/.github/services/http/nginx/action.yml
+++ b/.github/services/http/nginx/action.yml
@@ -21,7 +21,7 @@ description: 'Behavior test for http service in nginx'
 runs:
   using: "composite"
   steps:
-    - name: Setup etcd cluster
+    - name: Setup http in nginx
       shell: bash
       working-directory: fixtures/http
       run: docker-compose -f docker-compose-nginx.yml up -d

Reply via email to