We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f31cd41 commit 0bb6150Copy full SHA for 0bb6150
1 file changed
.github/workflows/unittest.yml
@@ -26,12 +26,18 @@ jobs:
26
with:
27
go-version-file: go.mod
28
cache: false
29
+ - name: Determine Go cache directories
30
+ id: go-cache
31
+ shell: bash
32
+ run: |
33
+ echo "gocache=$(go env GOCACHE)" >> "$GITHUB_OUTPUT"
34
+ echo "gomodcache=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
35
- name: Cache Go modules
36
uses: actions/cache@v4
37
38
path: |
- ~/go/pkg/mod
- ~/.cache/go-build
39
+ ${{ steps.go-cache.outputs.gomodcache }}
40
+ ${{ steps.go-cache.outputs.gocache }}
41
key: ${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }}
42
restore-keys: |
43
${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-
0 commit comments