From b76d9610803b43234ba18a0e5a4aa3f712321fcb Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Sun, 17 Mar 2024 21:56:11 +0100 Subject: [PATCH] GitHub actions: fix warning: restore cache failed --- .github/workflows/goreleaser.yml | 2 ++ .github/workflows/test.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 94fb1bc..fdbdb3c 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -17,6 +17,8 @@ jobs: uses: actions/setup-go@v5 with: go-version: 1.21 + cache: true + cache-dependency-path: '**/go.sum' - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 16e07f0..816da6c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,6 +24,8 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} + cache: true + cache-dependency-path: '**/go.sum' - name: Checkout code uses: actions/checkout@v4 - uses: actions/cache@v4