Skip to content

Commit ccf3b93

Browse files
committed
[chore] Clean up tool caching in CI
1 parent 73dd7b3 commit ccf3b93

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/continuous-integration.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/cache@v4
2929
with:
3030
path: bin
31-
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }}
31+
key: tools-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }}
3232

3333
- name: Install tools
3434
run: make install-tools
@@ -45,15 +45,15 @@ jobs:
4545

4646
- name: Set up Go
4747
uses: actions/setup-go@v5
48+
id: setup-go
4849
with:
4950
go-version: "~1.24.1"
5051

5152
- name: Cache tools
5253
uses: actions/cache@v4
53-
id: setup-go
5454
with:
5555
path: bin
56-
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }}
56+
key: tools-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }}
5757

5858
- name: Install tools
5959
run: make install-tools

.github/workflows/e2e.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,16 @@ jobs:
6262
id: setup-go
6363
with:
6464
go-version: "~1.24.1"
65+
6566
- name: Cache tools
6667
uses: actions/cache@v4
6768
with:
6869
path: bin
69-
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }}
70+
key: tools-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }}
71+
7072
- name: Install tools
7173
run: make install-tools
74+
7275
- name: Prepare e2e tests
7376
env:
7477
KUBE_VERSION: ${{ matrix.kube-version }}

.github/workflows/scorecard.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: actions/cache@v4
3636
with:
3737
path: bin
38-
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }}
38+
key: tools-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }}
3939

4040
- name: Install tools
4141
run: make install-tools

0 commit comments

Comments
 (0)