ci: update Kafka/Redpanda to latest version in workflows #1200
Workflow file for this run
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
name: Java E2E | |
permissions: {} | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main", "release-*"] | |
schedule: | |
# daily at 2:30 UTC | |
- cron: "30 2 * * *" | |
concurrency: | |
group: java-e2e-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
e2e: | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] | |
java: ["11", "17"] | |
kafka: ["3.6.2","3.7.0"] | |
broker: ["kafka","redpanda"] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
env: | |
AWS_ACCESS_KEY_ID: test | |
AWS_SECRET_ACCESS_KEY: test | |
AWS_DEFAULT_REGION: us-east-1 | |
KAFKA_VERSION: ${{ matrix.kafka }} | |
COMPOSE_FILE: "e2e/docker_compose.yaml" | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 | |
with: | |
distribution: "temurin" | |
java-version: ${{ matrix.java }} | |
cache: "maven" | |
- name: Run Kafka Connect ${{ matrix.kafka }} E2E Tests with ${{ matrix.broker }} | |
run: | | |
if [[ ${{ matrix.broker }} == "redpanda" ]]; then | |
export COMPOSE_FILE=e2e/docker_compose_redpanda.yaml | |
fi | |
echo "Running integration tests with Docker Compose file: ${COMPOSE_FILE}" | |
docker compose -f ${COMPOSE_FILE} pull | |
mvn --batch-mode --no-transfer-progress --errors --update-snapshots clean verify -Drevision=$(git describe --tags --always) | |
# special treatment due to different versioning scheme | |
e2e-confluent: | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] | |
java: ["11", "17"] | |
kafka: ["7.5.4","7.6.1"] | |
broker: ["confluent"] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
env: | |
AWS_ACCESS_KEY_ID: test | |
AWS_SECRET_ACCESS_KEY: test | |
AWS_DEFAULT_REGION: us-east-1 | |
COMPOSE_FILE: "e2e/docker_compose_confluent.yaml" | |
KAFKA_VERSION: ${{ matrix.kafka }} | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 | |
with: | |
distribution: "temurin" | |
java-version: ${{ matrix.java }} | |
cache: "maven" | |
- name: Run ${{ matrix.broker }} Platform ${{ matrix.kafka }} E2E Tests | |
run: | | |
echo "Running integration tests with Docker Compose file: ${COMPOSE_FILE}" | |
docker compose -f ${COMPOSE_FILE} pull | |
mvn --batch-mode --no-transfer-progress --errors --update-snapshots clean verify -Drevision=$(git describe --tags --always) |