Skip to content

Commit 8993515

Browse files
committed
gha: drop usage of actions/cache@v2
`actions/cache@v2` support ended and users are forced to upgrade to `v3/v4`. For this particular example, we do not have any good usage for cache so it's just better to drop it entirely. Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
1 parent 93c5cee commit 8993515

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

.github/workflows/go-cross.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,6 @@ jobs:
2525
- name: Checkout code
2626
uses: actions/checkout@v2
2727

28-
# https://github.com/marketplace/actions/cache
29-
- name: Cache Go modules
30-
uses: actions/cache@v2
31-
with:
32-
path: |
33-
~/go/pkg/mod # Module download cache
34-
~/.cache/go-build # Build cache (Linux)
35-
~/Library/Caches/go-build # Build cache (Mac)
36-
'%LocalAppData%\go-build' # Build cache (Windows)
37-
key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
38-
restore-keys: |
39-
${{ runner.os }}-${{ matrix.go-version }}-go-
40-
4128
- name: Test
4229
run: go test -v -cover ./...
4330

.github/workflows/main.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@ jobs:
3232
with:
3333
fetch-depth: 0
3434

35-
# https://github.com/marketplace/actions/cache
36-
- name: Cache Go modules
37-
uses: actions/cache@v2
38-
with:
39-
path: ~/go/pkg/mod
40-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
41-
restore-keys: |
42-
${{ runner.os }}-go-
43-
4435
- name: Check and get dependencies
4536
run: |
4637
go mod tidy

0 commit comments

Comments
 (0)