-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (34 loc) · 944 Bytes
/
ci.yaml
File metadata and controls
36 lines (34 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
services:
kafka:
image: apache/kafka:4.1.1
env:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://127.0.0.1:9092
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@127.0.0.1:9093
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093
KAFKA_NODE_ID: 1
KAFKA_PROCESS_ROLES: broker,controller
ports:
- 9092:9092
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: make fmt
- run: make tidy
- run: make vet
- run: make test-unit
- run: make test-system
- run: make test-system ZTEST_TAG=kafka