@@ -2,12 +2,12 @@ name: Router CI
22on :
33 pull_request :
44 paths :
5- - " composition-go/**/*"
6- - " demo/**/*"
7- - " router/**/*"
8- - " router-tests/**/*"
9- - " connect/**/*"
10- - " .github/workflows/router-ci.yaml"
5+ - ' composition-go/**/*'
6+ - ' demo/**/*'
7+ - ' router/**/*'
8+ - ' router-tests/**/*'
9+ - ' connect/**/*'
10+ - ' .github/workflows/router-ci.yaml'
1111
1212concurrency :
1313 group : ${{github.workflow}}-${{github.head_ref}}
@@ -150,6 +150,22 @@ jobs:
150150 password : ${{secrets.DOCKER_PASSWORD}}
151151 ports :
152152 - 6379:6379
153+ kafka :
154+ image : bitnami/kafka:3.7.0
155+ env :
156+ KAFKA_ENABLE_KRAFT : yes
157+ KAFKA_CFG_PROCESS_ROLES : controller,broker
158+ KAFKA_CFG_CONTROLLER_LISTENER_NAMES : CONTROLLER
159+ KAFKA_CFG_LISTENERS : PLAINTEXT://:9092,CONTROLLER://:9093
160+ KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP : CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
161+ KAFKA_CFG_CONTROLLER_QUORUM_VOTERS : 1@localhost:9093
162+ KAFKA_CFG_TRANSACTION_PARTITION_VERIFICATION_ENABLE : false
163+ KAFKA_CFG_ADVERTISED_LISTENERS : PLAINTEXT://localhost:9092
164+ KAFKA_CFG_NODE_ID : 1
165+ ALLOW_PLAINTEXT_LISTENER : yes
166+ KAFKA_KRAFT_CLUSTER_ID : XkpGZQ27R3eTl3OdTm2LYA # 16 byte base64-encoded UUID
167+ ports :
168+ - ' 9092:9092'
153169 steps :
154170 - uses : actions/checkout@v4
155171 - uses : ./.github/actions/go
@@ -205,14 +221,14 @@ jobs:
205221 dockerfile : router/Dockerfile
206222 token : ${{secrets.GITHUB_TOKEN}}
207223 image_name : router
208- image_description : " Cosmo Router"
224+ image_description : ' Cosmo Router'
209225 image_platforms : ' linux/amd64'
210226 load_Image : ' true'
211227 push : ' false'
212228
213229 - uses : ./.github/actions/image-scan
214230 with :
215- name : " Router"
231+ name : ' Router'
216232 github_token : ${{secrets.GITHUB_TOKEN}}
217233 image_ref : ' ghcr.io/wundergraph/cosmo/router:sha-${{ github.sha }}'
218234
@@ -233,4 +249,4 @@ jobs:
233249 dockerfile : router/Dockerfile
234250 token : ${{secrets.GITHUB_TOKEN}}
235251 image_name : router
236- image_description : " Cosmo Router"
252+ image_description : ' Cosmo Router'
0 commit comments