Skip to content

Commit 7cf4e12

Browse files
committed
fix: simplify cache
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
1 parent 59d3594 commit 7cf4e12

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ jobs:
1515
- uses: actions/setup-go@v3
1616
with:
1717
go-version: ~1.18
18-
- uses: actions/cache@v3
19-
with:
20-
path: ~/go/pkg/mod
21-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
22-
restore-keys: |
23-
${{ runner.os }}-go-
18+
cache: true
2419
- name: test
2520
run: |
2621
go test -v -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./...

.github/workflows/lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ jobs:
1111
name: lint
1212
runs-on: ubuntu-latest
1313
steps:
14+
- uses: actions/checkout@v3
1415
- uses: actions/setup-go@v3
1516
with:
1617
go-version: ~1.18
17-
- uses: actions/checkout@v3
18+
cache: true
1819
- name: golangci-lint
1920
uses: golangci/golangci-lint-action@v3
2021
with:

.github/workflows/release.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@ jobs:
2121
- uses: actions/setup-go@v3
2222
with:
2323
go-version: ~1.18
24-
- uses: actions/cache@v3
25-
with:
26-
path: ~/go/pkg/mod
27-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
28-
restore-keys: |
29-
${{ runner.os }}-go-
24+
cache: true
3025
- uses: goreleaser/goreleaser-action@v3
3126
with:
3227
version: latest

0 commit comments

Comments
 (0)