-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a0076f
commit b4c041b
Showing
4 changed files
with
46 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
golangci: | ||
if: github.repository == 'twmb/franz-go' | ||
runs-on: ubuntu-latest | ||
name: 'golangci-lint on amd64' | ||
name: "golangci-lint on amd64" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
|
@@ -28,7 +28,7 @@ jobs: | |
if: github.repository == 'twmb/franz-go' | ||
needs: golangci | ||
runs-on: ubuntu-latest | ||
name: 'vet on arm' | ||
name: "vet on arm" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
|
@@ -58,31 +58,34 @@ jobs: | |
echo "staticcheck ./..." | ||
staticcheck -checks 'all,-ST1003,-SA1012,-ST1016,-SA1019,-SA2001' ./... # actually contains atomicalign check | ||
# TODO: fix | ||
# integration-test: | ||
# if: github.repository == 'twmb/franz-go' | ||
# needs: golangci | ||
# runs-on: ubuntu-latest | ||
# name: 'integration test kafka' | ||
# container: golang:1.19.2 | ||
# services: | ||
# zk: | ||
# image: bitnami/zookeeper:latest | ||
# ports: | ||
# - 2181:2181 | ||
# env: | ||
# ALLOW_ANONYMOUS_LOGIN: yes | ||
# kafka: | ||
# image: bitnami/kafka:latest | ||
# ports: | ||
# - 9092:9092 | ||
# env: | ||
# ALLOW_PLAINTEXT_LISTENER: yes | ||
# KAFKA_CFG_ZOOKEEPER_CONNECT: zk:2181 | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - run: go test ./... | ||
# env: | ||
# KGO_TEST_RF: 1 | ||
# KGO_SEEDS: kafka:9092 | ||
# KGO_TEST_RECORDS: 50000 | ||
integration-test: | ||
if: github.repository == 'twmb/franz-go' | ||
needs: golangci | ||
runs-on: ubuntu-latest | ||
name: "integration test kafka" | ||
container: golang:1.19.2 | ||
services: | ||
kafka: | ||
image: bitnami/kafka:latest | ||
ports: | ||
- 9092:9092 | ||
env: | ||
KAFKA_ENABLE_KRAFT: yes | ||
KAFKA_CFG_PROCESS_ROLES: controller,broker | ||
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER | ||
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093 | ||
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT | ||
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: [email protected]:9093 | ||
# Set this to "PLAINTEXT://127.0.0.1:9092" if you want to run this container on localhost via Docker | ||
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092 | ||
KAFKA_CFG_BROKER_ID: 1 | ||
ALLOW_PLAINTEXT_LISTENER: yes | ||
KAFKA_KRAFT_CLUSTER_ID: XkpGZQ27R3eTl3OdTm2LYA # 16 byte base64-encoded UUID | ||
# BITNAMI_DEBUG: true # Enable this to get more info on startup failures | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: go test ./... | ||
env: | ||
KGO_TEST_RF: 1 | ||
KGO_SEEDS: kafka:9092 | ||
KGO_TEST_RECORDS: 50000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters