Skip to content

Commit 1573137

Browse files
committed
ci: remove dup go cache
1 parent 2b667ba commit 1573137

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

.github/workflows/main.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ jobs:
1919
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
2020
with:
2121
go-version: 1.20.x
22-
- name: Restore Go cache
23-
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
24-
with:
25-
path: ~/go/pkg/mod
26-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27-
restore-keys: |
28-
${{ runner.os }}-go-
2922
- name: Tests
3023
run: make test
3124
- name: Send go coverage report

.github/workflows/pr-build.yaml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,6 @@ jobs:
5555
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
5656
with:
5757
go-version: 1.20.x
58-
- name: Restore Go cache
59-
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
60-
with:
61-
path: ~/go/pkg/mod
62-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
63-
restore-keys: |
64-
${{ runner.os }}-go-
6558
- name: fmt
6659
run: make fmt
6760
- name: vet
@@ -96,13 +89,6 @@ jobs:
9689
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
9790
with:
9891
go-version: 1.20.x
99-
- name: Restore Go cache
100-
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
101-
with:
102-
path: ~/go/pkg/mod
103-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
104-
restore-keys: |
105-
${{ runner.os }}-go-
10692
- name: run test
10793
run: make test ENVTEST_K8S_VERSION=${{ matrix.kubernetes-version }}
10894

@@ -121,13 +107,6 @@ jobs:
121107
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
122108
with:
123109
go-version: 1.20.x
124-
- name: Restore Go cache
125-
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
126-
with:
127-
path: ~/go/pkg/mod
128-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
129-
restore-keys: |
130-
${{ runner.os }}-go-
131110
- name: build
132111
run: make build
133112
- name: Check if working tree is dirty
@@ -242,4 +221,4 @@ jobs:
242221
docker image ls -a
243222
244223
- name: Run chart-testing (install)
245-
run: ct install --target-branch=master --chart-dirs chart
224+
run: ct install --target-branch=master --chart-dirs chart

0 commit comments

Comments
 (0)