Skip to content

Commit e1ae4ff

Browse files
authored
fix golang library versions for github workflow (#218)
1 parent d2881bd commit e1ae4ff

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.github/workflows/run-tests.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ name: run-tests
55

66
on:
77
workflow_call:
8+
workflow_dispatch:
89

910
jobs:
1011
start-runner:
@@ -44,9 +45,6 @@ jobs:
4445
uses: actions/checkout@v3
4546
if: github.event.pull_request.head.sha == ''
4647
lint:
47-
concurrency:
48-
group: lint-golangci-${{ github.ref }}
49-
cancel-in-progress: true
5048
needs:
5149
- start-runner
5250
- smart-checkout
@@ -62,11 +60,8 @@ jobs:
6260
- name: golangci-lint
6361
uses: golangci/golangci-lint-action@v2
6462
with:
65-
version: v1.48.0
63+
version: v1.52.2
6664
code-format-check:
67-
concurrency:
68-
group: lint-autoformat-${{ github.ref }}
69-
cancel-in-progress: true
7065
needs:
7166
- start-runner
7267
- smart-checkout
@@ -81,8 +76,8 @@ jobs:
8176
echo "HOME=/actions-runner" >> $GITHUB_ENV
8277
- name: Install utilities
8378
run: |
84-
go install mvdan.cc/gofumpt@v0.3.1
85-
go install github.com/rinchsan/gosimports/cmd/gosimports@v0.1.5
79+
go install mvdan.cc/gofumpt@v0.5.0
80+
go install github.com/rinchsan/gosimports/cmd/gosimports@v0.3.8
8681
- name: format all files with auto-formatter
8782
run: bash ./.github/scripts/format-all-go-code.sh "$PWD"
8883
- name: Check repository diff
@@ -107,12 +102,12 @@ jobs:
107102
export HOME=/actions-runner
108103
echo "HOME=/actions-runner" >> $GITHUB_ENV
109104
110-
go install sigs.k8s.io/kind@v0.17.0
105+
go install sigs.k8s.io/kind@v0.21.0
111106
112-
curl -LO https://dl.k8s.io/release/v1.25.0/bin/linux/amd64/kubectl
107+
curl -LO https://dl.k8s.io/release/v1.29.1/bin/linux/amd64/kubectl
113108
chmod +x ./kubectl
114109
115-
HELM_PKG="helm-v3.10.3-linux-amd64.tar.gz"
110+
HELM_PKG="helm-v3.13.3-linux-amd64.tar.gz"
116111
curl -LO https://get.helm.sh/"${HELM_PKG}"
117112
tar -zxvf "${HELM_PKG}"
118113
mv ./linux-amd64/helm .
@@ -138,13 +133,13 @@ jobs:
138133
# This installs kube-apiserver and etcd binaries for `medium`
139134
# class tests. Refer to the writing tests docs for more info.
140135
make envtest
141-
KUBEBUILDER_ASSETS=$(./bin/setup-envtest use 1.26 -p path)
136+
KUBEBUILDER_ASSETS=$(./bin/setup-envtest use 1.29 -p path)
142137
echo "KUBEBUILDER_ASSETS=$KUBEBUILDER_ASSETS" >> $GITHUB_ENV
143138
- name: setup-k8s-cluster
144139
run: |
145140
kind delete cluster
146141
kind create cluster \
147-
--image=kindest/node:v1.25.3@sha256:cd248d1438192f7814fbca8fede13cfe5b9918746dfa12583976158a834fd5c5 \
142+
--image=kindest/node:v1.29.1@sha256:a0cc28af37cf39b019e2b448c54d1a3f789de32536cb5a5db61a49623e527144 \
148143
--config=./e2e/kind-cluster-config.yaml
149144
kubectl wait --timeout=5m --for=condition=ready node -l worker=true
150145
- name: build-operator-image

0 commit comments

Comments
 (0)