Skip to content

Commit 6ec6dd3

Browse files
authored
chore: use actions/setup-go native cache (#787)
Signed-off-by: Matthieu MOREL <[email protected]>
1 parent f7911cc commit 6ec6dd3

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/go.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ jobs:
1818
uses: actions/setup-go@v5
1919
with:
2020
go-version: stable
21-
22-
- uses: actions/cache@v4
23-
with:
24-
path: ~/go/pkg/mod
25-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
21+
cache-dependency-path: "**/go.sum"
2622

2723
- name: Linting & vetting.
2824
run: make lint
@@ -43,11 +39,7 @@ jobs:
4339
uses: actions/setup-go@v5
4440
with:
4541
go-version: ${{ matrix.go }}
46-
47-
- uses: actions/cache@v4
48-
with:
49-
path: ~/go/pkg/mod
50-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
42+
cache-dependency-path: "**/go.sum"
5143

5244
- name: Run unit tests.
5345
run: make test

0 commit comments

Comments
 (0)