Skip to content

Commit ccad517

Browse files
committed
use setup-go cache
1 parent 27e2063 commit ccad517

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/workflows/goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- uses: actions/setup-go@v3
2020
with:
2121
go-version-file: go.mod
22+
cache: true
2223
- uses: goreleaser/goreleaser-action@v4
2324
with:
2425
version: latest

.github/workflows/test.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@ jobs:
1212
- uses: actions/setup-go@v3
1313
with:
1414
go-version-file: go.mod
15-
- uses: actions/cache@v3
16-
with:
17-
path: ~/go/pkg/mod
18-
key: go-${{ runner.os }}-${{ hashFiles('go.mod') }}
19-
restore-keys: |
20-
go-${{ runner.os }}-
15+
cache: true
2116
- run: go mod download
2217
- uses: golangci/golangci-lint-action@v3
2318
with:

0 commit comments

Comments
 (0)