Skip to content

Commit 511e050

Browse files
committed
ci(golang): use go version specified inside of go.mod
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
1 parent dea0350 commit 511e050

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ jobs:
137137
persist-credentials: false
138138
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
139139
with:
140-
go-version: "1.26"
141-
check-latest: true # Always check for the latest patch release
140+
go-version-file: "go.mod"
142141
- run: make test-go
143142
- name: Upload Go test coverage to Codecov
144143
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
@@ -161,8 +160,7 @@ jobs:
161160
persist-credentials: false
162161
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
163162
with:
164-
go-version: "1.26"
165-
check-latest: true # Always check for the latest patch release
163+
go-version-file: "go.mod"
166164
- run: make test-e2e
167165

168166
golangci:
@@ -176,8 +174,7 @@ jobs:
176174
persist-credentials: false
177175
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
178176
with:
179-
go-version: "1.26"
180-
check-latest: true # Always check for the latest patch release
177+
go-version-file: "go.mod"
181178
- name: golangci-lint
182179
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
183180
with:
@@ -478,8 +475,7 @@ jobs:
478475
persist-credentials: false
479476
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
480477
with:
481-
go-version: "1.26"
482-
check-latest: true
478+
go-version-file: "go.mod"
483479
- run: |
484480
make manifests
485481
if ! git diff --quiet -- charts/; then

0 commit comments

Comments
 (0)