Skip to content

Commit 8025dac

Browse files
committed
ci: use go.mod for actions/setup-go
Signed-off-by: Jaime Caamaño Ruiz <[email protected]>
1 parent f5f88ea commit 8025dac

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ permissions:
99
packages: write
1010

1111
env:
12-
GO_VERSION: 1.23
1312
REGISTRY: ghcr.io
1413
OWNER: ovn-kubernetes
1514
REPOSITORY: ovn-kubernetes
@@ -27,7 +26,7 @@ jobs:
2726
- name: Set up Go
2827
uses: actions/setup-go@v5
2928
with:
30-
go-version: ${{ env.GO_VERSION }}
29+
go-version-file: 'go-controller/go.mod'
3130
cache-dependency-path: "**/*.sum"
3231
id: go
3332

.github/workflows/test.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ concurrency:
1616
cancel-in-progress: true
1717

1818
env:
19-
GO_VERSION: 1.23
2019
K8S_VERSION: v1.32.3
2120
KIND_CLUSTER_NAME: ovn
2221
KIND_INSTALL_INGRESS: true
@@ -47,7 +46,7 @@ jobs:
4746
- name: Set up Go
4847
uses: actions/setup-go@v5
4948
with:
50-
go-version: ${{ env.GO_VERSION }}
49+
go-version-file: 'go-controller/go.mod'
5150
cache-dependency-path: "**/*.sum"
5251
id: go
5352

@@ -103,7 +102,7 @@ jobs:
103102
if: steps.is_master_image_build_needed.outputs.MASTER_IMAGE_RESTORED != 'true' && success()
104103
uses: actions/setup-go@v5
105104
with:
106-
go-version: ${{ env.GO_VERSION }}
105+
go-version-file: 'go-controller/go.mod'
107106
cache-dependency-path: "**/*.sum"
108107
id: go
109108

@@ -181,7 +180,7 @@ jobs:
181180
if: steps.is_pr_image_build_needed.outputs.PR_IMAGE_RESTORED != 'true' && success()
182181
uses: actions/setup-go@v5
183182
with:
184-
go-version: ${{ env.GO_VERSION }}
183+
go-version-file: 'go-controller/go.mod'
185184
cache-dependency-path: "**/*.sum"
186185
id: go
187186

@@ -286,7 +285,7 @@ jobs:
286285
- name: Set up Go
287286
uses: actions/setup-go@v5
288287
with:
289-
go-version: ${{ env.GO_VERSION }}
288+
go-version-file: 'go-controller/go.mod'
290289
cache-dependency-path: "**/*.sum"
291290
id: go
292291

@@ -507,7 +506,7 @@ jobs:
507506
- name: Set up Go
508507
uses: actions/setup-go@v5
509508
with:
510-
go-version: ${{ env.GO_VERSION }}
509+
go-version-file: 'go-controller/go.mod'
511510
cache-dependency-path: "**/*.sum"
512511
id: go
513512

@@ -671,7 +670,7 @@ jobs:
671670
- name: Set up Go
672671
uses: actions/setup-go@v5
673672
with:
674-
go-version: ${{ env.GO_VERSION }}
673+
go-version-file: 'go-controller/go.mod'
675674
cache-dependency-path: "**/*.sum"
676675
id: go
677676

0 commit comments

Comments
 (0)