8000 Replace actions/cache with setup-go's cache (#238) · stern/stern@74952fd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 74952fd

Browse files
author
Takashi Kusumi
authored
Replace actions/cache with setup-go's cache (#238)
1 parent 4bb340d commit 74952fd

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,9 @@ jobs:
1616
- uses: actions/setup-go@v3
1717
with:
1818
go-version: 1.19.x
19+
cache: true
1920
- name: Ensure go.mod is already tidied
2021
run: go mod tidy && git diff -s --exit-code go.sum
21-
- uses: actions/cache@v3
22-
with:
23-
path: ~/go/pkg/mod
24-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
25-
restore-keys: |
26-
${{ runner.os }}-go-
2722
- name: Run verify-readme
2823
run: make verify-readme
2924
- name: Run tests

.github/workflows/release.yaml

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: 1.19.x
15-
- uses: actions/cache@v3
16-
with:
17-
path: ~/go/pkg/mod
18-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
19-
restore-keys: |
20-
${{ runner.os }}-go-
15+
cache: true
2116
- name: Login to GitHub Container Registry
2217
uses: docker/login-action@v1
2318
with:

0 commit comments

Comments
 (0)
0