Skip to content

Commit 2f01a0d

Browse files
committed
Fix GitHub Actions and upgrade dependencies
Signed-off-by: Ricardo Zanini <[email protected]>
1 parent e07c435 commit 2f01a0d

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.github/workflows/Go-SDK-Check-k8s-integration.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ on:
2323
branches:
2424
- main
2525
env:
26-
GO_VERSION: 1.19
26+
GO_VERSION: 1.22
2727
jobs:
2828
basic_checks:
2929
name: Basic Checks
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Checkout Code
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434
- name: Setup Go ${{ env.GO_VERSION }}
35-
uses: actions/setup-go@v4
35+
uses: actions/setup-go@v5
3636
with:
3737
go-version: ${{ env.GO_VERSION }}
3838
id: go
3939
- name: Cache dependencies
40-
uses: actions/cache@v3
40+
uses: actions/cache@v4
4141
with:
4242
path: |
4343
~/.cache/go-build
@@ -46,7 +46,7 @@ jobs:
4646
restore-keys: |
4747
${{ runner.os }}-go-
4848
- name: Cache tools
49-
uses: actions/cache@v3
49+
uses: actions/cache@v4
5050
with:
5151
path: ~/go/bin
5252
key: ${{ runner.os }}-go-tools-${{ hashFiles('**/tools.sum') }}

.github/workflows/Go-SDK-PR-Check.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ on:
2323
branches:
2424
- main
2525
env:
26-
GO_VERSION: 1.19
26+
GO_VERSION: 1.22
2727
jobs:
2828
basic_checks:
2929
name: Basic Checks
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Checkout Code
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434
- name: Setup Go ${{ env.GO_VERSION }}
35-
uses: actions/setup-go@v4
35+
uses: actions/setup-go@v5
3636
with:
3737
go-version: ${{ env.GO_VERSION }}
3838
id: go
3939
- name: Cache dependencies
40-
uses: actions/cache@v3
40+
uses: actions/cache@v4
4141
with:
4242
path: |
4343
~/.cache/go-build
@@ -46,7 +46,7 @@ jobs:
4646
restore-keys: |
4747
${{ runner.os }}-go-
4848
- name: Cache tools
49-
uses: actions/cache@v3
49+
uses: actions/cache@v4
5050
with:
5151
path: ~/go/bin
5252
key: ${{ runner.os }}-go-tools-${{ hashFiles('**/tools.sum') }}
@@ -67,7 +67,7 @@ jobs:
6767
changed_files=$(git status -s | grep -v 'go.mod\|go.sum\|tools.mod\|tools.sum' || :)
6868
[[ -z "$changed_files" ]] || (printf "Some files are not formatted properly: \n$changed_files\n Did you run 'make test' before sending the PR?" && exit 1)
6969
- name: Check lint
70-
uses: golangci/golangci-lint-action@v3
70+
uses: golangci/golangci-lint-action@v6
7171
with:
7272
version: latest
7373
- name: Install cover
@@ -78,7 +78,7 @@ jobs:
7878
run: |
7979
go test ./... -coverprofile test_coverage.out -covermode=atomic
8080
- name: Upload results to codecov
81-
uses: codecov/codecov-action@v3
81+
uses: codecov/codecov-action@v4
8282
with:
8383
files: ./test_coverage.out
8484
flags: sdk-go

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ LOCALBIN ?= $(shell pwd)/bin
3838
$(LOCALBIN):
3939
mkdir -p $(LOCALBIN)
4040

41-
CONTROLLER_TOOLS_VERSION ?= v0.9.2
41+
CONTROLLER_TOOLS_VERSION ?= v0.16.3
4242
CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen
4343
.PHONY: controller-gen
4444
controller-gen: $(CONTROLLER_GEN) ## Download controller-gen locally if necessary.

0 commit comments

Comments
 (0)