From f51df67c73a80c610c9e461f468f5a19a0275434 Mon Sep 17 00:00:00 2001 From: HTHou Date: Wed, 28 Aug 2024 18:38:31 +0800 Subject: [PATCH] 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: |