Skip to content

Commit 31f3467

Browse files
feat: go upgrade 1.24 (#93)
1 parent 8b1e318 commit 31f3467

File tree

19 files changed

+42
-45
lines changed

19 files changed

+42
-45
lines changed

.github/workflows/integration-test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717

1818
- name: Set up Go
19-
uses: actions/setup-go@v3
19+
uses: actions/setup-go@v4
2020
with:
21-
go-version: 1.19
21+
go-version: 1.24
2222

23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Start containers
2525
run: make integration-compose
2626

27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
- name: Integration Test
2929
run: go test -timeout=15m -v test/integration/integration_test.go
3030
env:

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
1919

2020
- run: git tag ${{ github.event.inputs.tag }}
2121

2222
- name: Set up Go
23-
uses: actions/setup-go@v3
23+
uses: actions/setup-go@v4
2424
with:
25-
go-version: 1.19
25+
go-version: 1.24
2626

2727
- name: Run GoReleaser
28-
uses: goreleaser/goreleaser-action@v4
28+
uses: goreleaser/goreleaser-action@v5
2929
with:
3030
version: latest
3131
args: release --clean

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717

1818
- name: Set up Go
19-
uses: actions/setup-go@v3
19+
uses: actions/setup-go@v4
2020
with:
21-
go-version: 1.19
21+
go-version: 1.24
2222

2323
- name: Install dependencies
2424
run: go get .
2525

2626
- name: golangci-lint
27-
uses: golangci/golangci-lint-action@v3
27+
uses: golangci/golangci-lint-action@v6
2828
with:
29-
version: v1.51
29+
version: v1.64.8
3030
args: -c .golangci.yml --timeout=5m -v
3131

3232
- name: Build

.golangci.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ linters:
88
disable-all: true
99
enable:
1010
- bodyclose
11-
- depguard
1211
- errcheck
1312
- dupl
1413
- exhaustive
@@ -37,7 +36,7 @@ linters:
3736
issues:
3837
# Excluding configuration per-path, per-linter, per-text and per-source
3938
exclude-rules:
40-
- path: internal/kafka/
39+
- path: internal/
4140
text: "dot-imports"
4241
linters:
4342
- revive
@@ -48,8 +47,3 @@ issues:
4847
linters:
4948
- errcheck
5049
- funlen
51-
52-
service:
53-
golangci-lint-version: 1.51.x # use the fixed version to not introduce new linters unexpectedly
54-
prepare:
55-
- echo "here I can run custom commands, but no preparation needed for this repo"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ help:
66
## lint: runs golangci lint based on .golangci.yml configuration
77
.PHONY: lint
88
lint:
9-
@if ! test -f `go env GOPATH`/bin/golangci-lint; then go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.0; fi
9+
@if ! test -f `go env GOPATH`/bin/golangci-lint; then go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.8; fi
1010
golangci-lint run -c .golangci.yml --fix -v
1111

1212
## test: runs tests

examples/multiple-consumer/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module multiple-consumer
22

3-
go 1.19
3+
go 1.24
44

55
replace github.com/Trendyol/kafka-cronsumer => ../..
66

examples/single-consumer-with-backoff-strategy/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module single-consumer-with-producer
22

3-
go 1.19
3+
go 1.24
44

55
replace github.com/Trendyol/kafka-cronsumer => ../..
66

examples/single-consumer-with-custom-logger/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module single-consumer-with-custom-logger
22

3-
go 1.19
3+
go 1.24
44

55
replace github.com/Trendyol/kafka-cronsumer => ../..
66

examples/single-consumer-with-deadletter/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module single-consumer-with-deadletter
22

3-
go 1.19
3+
go 1.24
44

55
replace github.com/Trendyol/kafka-cronsumer => ../..
66

examples/single-consumer-with-header-filter-function/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module single-consumer
22

3-
go 1.19
3+
go 1.24
44

55
replace github.com/Trendyol/kafka-cronsumer => ../..
66

0 commit comments

Comments
 (0)