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

haonan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-client-go.git


The following commit(s) were added to refs/heads/main by this push:
     new f51df67  fix github action cache error
f51df67 is described below

commit f51df67c73a80c610c9e461f468f5a19a0275434
Author: HTHou <[email protected]>
AuthorDate: Wed Aug 28 18:38:31 2024 +0800

    fix github action cache error
---
 .github/workflows/e2e.yml | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 8ef256f..195d7a7 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -27,13 +27,15 @@ jobs:
     - name: Check out code into the Go module directory
       uses: actions/checkout@v4
 
-    - name: Cache local Maven repository
+    - name: Cache go dependency
       uses: actions/cache@v4
       with:
-        path: ~/.m2/repository
-        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+        path: |
+          ~/.cache/go-build
+          ~/go/pkg/mod
+        key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
         restore-keys: |
-          ${{ runner.os }}-maven-
+          ${{ runner.os }}-go-
 
     - name: Integration test
       run: |

Reply via email to