Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/apidiff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,17 @@ on:
paths-ignore:
- '**/*.md'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

permissions:
contents: read # for actions/checkout to fetch code

env:
# Use the Go toolchain installed by setup-go
GOTOOLCHAIN: local

jobs:
apidiff:
runs-on: ubuntu-latest
Expand All @@ -23,7 +31,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.23.x
go-version: stable
- name: Add GOBIN to PATH
run: echo "$(go env GOPATH)/bin" >>$GITHUB_PATH
- name: Install apidiff cmd
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cache-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
types:
- closed

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

permissions:
contents: read # for actions/checkout to fetch code

Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,17 @@ on:
paths-ignore:
- '**/*.md'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

permissions:
contents: read # for actions/checkout to fetch code

env:
# Use the Go toolchain installed by setup-go
GOTOOLCHAIN: local

jobs:
lint:
permissions:
Expand All @@ -25,7 +33,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [1.23.x]
go-version: [stable]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
Expand All @@ -38,7 +46,7 @@ jobs:
shell: bash
env:
BUILDTAGS: "functional"
VERSION: "v0.5.1"
VERSION: "v0.6.0"
run: |
go install "honnef.co/go/tools/cmd/staticcheck@${VERSION}"
echo "::add-matcher::./.github/actions/staticcheck-matchers.json"
Expand All @@ -48,14 +56,14 @@ jobs:
GOFLAGS: -tags=functional
uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6.2.0
with:
version: v1.63.4
version: v1.64.5
test:
name: Unit Testing with Go ${{ matrix.go-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version: [1.21.x, 1.23.x]
go-version: [oldstable, stable]
env:
DEBUG: true
GOFLAGS: -trimpath
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,17 @@ on:
schedule:
- cron: "39 12 * * 1"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

permissions:
contents: read # for actions/checkout to fetch code

env:
# Use the Go toolchain installed by setup-go
GOTOOLCHAIN: local

jobs:
analyze:
name: Analyze
Expand All @@ -37,7 +45,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.23.x
go-version: stable
- name: Autobuild
uses: github/codeql-action/autobuild@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
- name: Perform CodeQL Analysis
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
paths-ignore:
- '**/*.md'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

permissions:
contents: read # for actions/checkout to fetch code

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,17 @@ on:
paths-ignore:
- '**/*.md'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

permissions:
contents: read # for actions/checkout to fetch code

env:
# Use the Go toolchain installed by setup-go
GOTOOLCHAIN: local

jobs:
test:
name: Fuzz
Expand All @@ -28,6 +36,6 @@ jobs:
- name: Setup Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.23.x
go-version: stable
- name: Run any fuzzing tests
run: go test -list . | grep '^Fuzz' | parallel 'go test -v -run=^{}$ -fuzz=^{}$ -fuzztime=5m'
6 changes: 5 additions & 1 deletion .github/workflows/fvt-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ on:
permissions:
contents: read # for actions/checkout to fetch code

env:
# Use the Go toolchain installed by setup-go
GOTOOLCHAIN: local

jobs:
fvt:
name: Test with Kafka ${{ matrix.kafka-version }}
strategy:
fail-fast: false
matrix:
go-version: [1.23.x]
go-version: [stable]
kafka-version: [1.0.2, 2.0.1, 2.2.2, 2.6.3, 2.8.2, 3.0.2, 3.3.2, 3.6.2, 3.8.1, 4.0.0]
include:
- kafka-version: 1.0.2
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/fvt-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ on:
permissions:
contents: read # for actions/checkout to fetch code

env:
# Use the Go toolchain installed by setup-go
GOTOOLCHAIN: local

jobs:
fvt:
name: Test with Kafka ${{ matrix.kafka-version }}
strategy:
fail-fast: false
matrix:
go-version: [1.23.x]
go-version: [stable]
kafka-version: [1.0.2, 2.6.3, 3.6.2, 3.8.1, 4.0.0]
include:
- kafka-version: 1.0.2
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/fvt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
go-version:
required: false
type: string
default: 1.23.x
default: stable
kafka-version:
required: false
type: string
Expand All @@ -15,9 +15,17 @@ on:
type: string
default: 2.13

concurrency:
group: ${{ github.workflow }}-kafka-${{ inputs.kafka-version}}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

permissions:
contents: read # for actions/checkout to fetch code

env:
# Use the Go toolchain installed by setup-go
GOTOOLCHAIN: local

jobs:
fvt:
name: Test with Kafka ${{ inputs.kafka-version }}
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/i386.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,17 @@ on:
paths-ignore:
- '**/*.md'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

permissions:
contents: read # for actions/checkout to fetch code

env:
# Use the Go toolchain installed by setup-go
GOTOOLCHAIN: local

jobs:
atomicalign:
permissions:
Expand All @@ -28,7 +36,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.23.x
go-version: stable
- name: staticcheck
env:
GOARCH: 386
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
push:
branches: [ "main" ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

# Declare default permissions as read only.
permissions:
actions: read
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- cron: "0 */2 * * *"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

permissions:
contents: read # for actions/checkout to fetch code

Expand Down
2 changes: 1 addition & 1 deletion examples/consumergroup/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/IBM/sarama/examples/consumer

go 1.21
go 1.23.0

require github.com/IBM/sarama v1.45.0

Expand Down
2 changes: 1 addition & 1 deletion examples/exactly_once/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/IBM/sarama/examples/exactly_once

go 1.21
go 1.23.0

require github.com/IBM/sarama v1.45.0

Expand Down
2 changes: 1 addition & 1 deletion examples/http_server/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/IBM/sarama/examples/http_server

go 1.21
go 1.23.0

require github.com/IBM/sarama v1.45.0

Expand Down
2 changes: 1 addition & 1 deletion examples/interceptors/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/IBM/sarama/examples/interceptors

go 1.21
go 1.23.0

require (
github.com/IBM/sarama v1.45.0
Expand Down
2 changes: 1 addition & 1 deletion examples/sasl_scram_client/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/IBM/sarama/examples/sasl_scram_client

go 1.21
go 1.23.0

require (
github.com/IBM/sarama v1.45.0
Expand Down
2 changes: 1 addition & 1 deletion examples/txn_producer/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/IBM/sarama/examples/txn_producer

go 1.21
go 1.23.0

require (
github.com/IBM/sarama v1.45.0
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/IBM/sarama

go 1.21
go 1.23.0

require (
github.com/davecgh/go-spew v1.1.1
Expand Down