chore(deps): update typescript-eslint monorepo to v8.67.0 #286
This file contains hidden or 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
| name: Test Kafka | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| universal-reachable: | |
| name: Test Kafka (Universal, Reachable) | |
| runs-on: ubuntu-latest | |
| services: | |
| kafka: | |
| image: apache/kafka:4.3.0 | |
| env: | |
| # Enable KRaft mode | |
| KAFKA_PROCESS_ROLES: broker,controller | |
| KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER | |
| KAFKA_NODE_ID: 1 | |
| KAFKA_CONTROLLER_QUORUM_VOTERS: '1@127.0.0.1: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@v6 | |
| - 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 | |
| universal-timeout: | |
| name: Test Kafka (Universal, Timeout) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - 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 | |
| dedicated-reachable: | |
| name: Test Kafka (Dedicated, Reachable) | |
| runs-on: ubuntu-latest | |
| services: | |
| kafka: | |
| image: apache/kafka:4.3.0 | |
| env: | |
| KAFKA_PROCESS_ROLES: broker,controller | |
| KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER | |
| KAFKA_NODE_ID: 1 | |
| KAFKA_CONTROLLER_QUORUM_VOTERS: '1@127.0.0.1:9093' | |
| KAFKA_LISTENERS: 'PLAINTEXT://:9092,CONTROLLER://:9093,EXTERNAL://:9094' | |
| KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://127.0.0.1:9092,EXTERNAL://localhost:9094' | |
| KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: 'CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,EXTERNAL:PLAINTEXT' | |
| KAFKA_INTER_BROKER_LISTENER_NAME: 'PLAINTEXT' | |
| KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' | |
| KAFKA_NUM_PARTITIONS: '2' | |
| ports: | |
| - 9094:9094 | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Wait for Kafka | |
| uses: ./kafka | |
| with: | |
| host: localhost | |
| port: 9094 | |
| timeout: 300 | |
| dedicated-timeout: | |
| name: Test Kafka (Dedicated, Timeout) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Wait for Kafka | |
| id: wait-for-kafka | |
| uses: ./kafka | |
| continue-on-error: true | |
| with: | |
| host: localhost | |
| port: 9094 | |
| timeout: 30 | |
| - name: Fail if wait succeeded unexpectedly | |
| if: steps.wait-for-kafka.outcome != 'failure' | |
| run: exit 1 | |
| required-check: | |
| name: Test Kafka - Required Check | |
| needs: | |
| - universal-reachable | |
| - universal-timeout | |
| - dedicated-reachable | |
| - dedicated-timeout | |
| if: always() | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check for failures | |
| if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') | |
| run: | | |
| echo "One of the dependent jobs has failed or was cancelled." && exit 1 |