-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2750 from ozangunalp/kafka_tests_job
Github workflow to run Kafka tests on different client-broker versions
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Run Kafka tests | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
kafkaCLientVersion: | ||
description: 'Kafka Client version' | ||
kafkaBrokerVersion: | ||
description: 'Kafka Broker version' | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
env: | ||
KAFKA_VERSION: ${{ inputs.kafkaCLientVersion }} | ||
KAFKA_CONTAINER_VERSION: ${{ inputs.kafkaBrokerVersion }} | ||
name: Test with Kafka ${{ inputs.kafkaCLientVersion }} and Broker ${{ inputs.kafkaBrokerVersion }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 21 | ||
distribution: temurin | ||
cache: maven | ||
- name: Build with Maven | ||
run: mvn -s .build/ci-maven-settings.xml clean install -T1C -DskipTests | ||
- name: Run Kafka tests | ||
run: | | ||
mvn -s .build/ci-maven-settings.xml -pl :smallrye-reactive-messaging-kafka -B verify \ | ||
${KAFKA_VERSION:+"-Dkafka.version=$KAFKA_VERSION"} \ | ||
${KAFKA_CONTAINER_VERSION:+"-Dkafka-container-version=$KAFKA_CONTAINER_VERSION"} | ||
flaky-tests: | ||
runs-on: ubuntu-latest | ||
env: | ||
KAFKA_VERSION: ${{ inputs.kafkaCLientVersion }} | ||
KAFKA_CONTAINER_VERSION: ${{ inputs.kafkaBrokerVersion }} | ||
name: Flaky Test with Kafka ${{ inputs.kafkaCLientVersion }} and Broker ${{ inputs.kafkaBrokerVersion }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 21 | ||
distribution: temurin | ||
cache: maven | ||
- name: Build with Maven | ||
run: mvn -s .build/ci-maven-settings.xml clean install -T1C -DskipTests | ||
- name: Run Kafka tests | ||
run: | | ||
mvn -s .build/ci-maven-settings.xml -pl :smallrye-reactive-messaging-kafka -B verify -Pslow-flaky-tests \ | ||
${KAFKA_VERSION:+"-Dkafka.version=$KAFKA_VERSION"} \ | ||
${KAFKA_CONTAINER_VERSION:+"-Dkafka-container-version=$KAFKA_CONTAINER_VERSION"} |