Skip to content

Commit 88523e3

Browse files
committed
ci: Use Go 1.20 in GitHub Actions workflows
This also required upgrading GolangCI-Lint, which in turn found an unused field that appears to have previously gone undetected. Related: #8558
1 parent 7ff0531 commit 88523e3

File tree

9 files changed

+9
-11
lines changed

9 files changed

+9
-11
lines changed

.github/workflows/integration-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Set up Go
3434
uses: actions/setup-go@v4
3535
with:
36-
go-version: 1.19.*
36+
go-version: 1.20.*
3737
id: go
3838

3939
# Retrieve build locations with `go env`

.github/workflows/linters-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v4
1919
with:
20-
go-version: 1.19.*
20+
go-version: 1.20.*
2121
id: go
2222

2323
- name: Check out code into the Go module directory

.github/workflows/performance-comparison.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Set up Go
4242
uses: actions/setup-go@v4
4343
with:
44-
go-version: 1.19.*
44+
go-version: 1.20.*
4545
id: go
4646

4747
- name: Check out code into the Go module directory

.github/workflows/unit-tests-darwin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set up Go
2424
uses: actions/setup-go@v4
2525
with:
26-
go-version: 1.19.*
26+
go-version: 1.20.*
2727
id: go
2828

2929
# Retrieve build locations with `go env`

.github/workflows/unit-tests-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v4
1919
with:
20-
go-version: 1.19.*
20+
go-version: 1.20.*
2121
id: go
2222

2323
- name: Check out code into the Go module directory

.github/workflows/unit-tests-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up Go
2525
uses: actions/setup-go@v4
2626
with:
27-
go-version: 1.19.*
27+
go-version: 1.20.*
2828
id: go
2929

3030
# Retrieve build locations with `go env`

.github/workflows/verify-examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set up Go
2424
uses: actions/setup-go@v4
2525
with:
26-
go-version: 1.19.*
26+
go-version: 1.20.*
2727
id: go
2828

2929
# Skip changes not affecting examples or integration/examples

hack/golangci-lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set -e -o pipefail
1818

1919
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2020
BIN=${DIR}/bin
21-
VERSION=1.49.0
21+
VERSION=1.52.2
2222

2323
function install_linter() {
2424
echo "Installing GolangCI-Lint"

pkg/diag/diag_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ type mockValidator struct {
3434
listOptions metav1.ListOptions
3535
}
3636

37-
type mockErrValidator struct {
38-
*mockValidator
39-
}
37+
type mockErrValidator struct{}
4038

4139
func (m *mockValidator) Validate(_ context.Context, ns string, opts metav1.ListOptions) ([]validator.Resource, error) {
4240
m.ns = append(m.ns, ns)

0 commit comments

Comments
 (0)