WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

chore(deps): update dependency prettier to v3.7.4 #107

chore(deps): update dependency prettier to v3.7.4

chore(deps): update dependency prettier to v3.7.4 #107

Workflow file for this run

name: Test Kafka
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test Kafka
runs-on: ubuntu-latest
services:
kafka:
image: apache/kafka:4.1.0
env:
# Enable KRaft mode
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_NODE_ID: 1
KAFKA_CONTROLLER_QUORUM_VOTERS: "[email protected]:9093"
# Listeners
KAFKA_LISTENERS: "PLAINTEXT://:9092,CONTROLLER://:9093,EXTERNAL://:9094"
KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://127.0.0.1:9092,EXTERNAL://kafka:9094"
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,EXTERNAL:PLAINTEXT"
KAFKA_INTER_BROKER_LISTENER_NAME: "PLAINTEXT"
# Additional settings
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
KAFKA_NUM_PARTITIONS: "2"
timeout-minutes: 10
steps:
- uses: actions/checkout@v5
- name: Patch action.yml
run: |
sed -i 's|image:\s.*|image: Dockerfile|g' action.yml
- name: Wait for Kafka
uses: ./
with:
type: kafka
host: kafka
port: 9092
timeout: 300
test-timeout:
name: Test Kafka - Timeout
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v5
- name: Patch action.yml
run: |
sed -i 's|image:\s.*|image: Dockerfile|g' action.yml
- name: Wait for Kafka
id: wait-for-kafka
uses: ./
continue-on-error: true
with:
type: kafka
host: kafka
port: 9092
timeout: 30
- name: Fail if wait succeeded unexpectedly
if: steps.wait-for-kafka.outcome != 'failure'
run: exit 1