Skip to content

Commit

Permalink
Merge pull request #399 from Altinity/java-test-docker
Browse files Browse the repository at this point in the history
Docker tag in Java tests
  • Loading branch information
subkanthi authored Dec 4, 2023
2 parents 0a8ca58 + a39db8d commit a00df9d
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,32 @@ on:
jobs:
build-kafka-lightweight:
uses: ./.github/workflows/docker-build.yml
secrets: inherit
with:
IMAGE_TAG: ${{ github.event.number }}-${{ github.sha }}
secrets: inherit

testflows-kafka:
needs: [build-kafka-lightweight]
uses: ./.github/workflows/testflows-sink-connector-kafka.yml
secrets: inherit
with:
SINK_CONNECTOR_IMAGE: altinityinfra/clickhouse-sink-connector:${{ github.event.number }}-${{ github.sha }}-kafka
secrets: inherit

testflows-lightweight:
needs: [build-kafka-lightweight]
uses: ./.github/workflows/testflows-sink-connector-lightweight.yml
secrets: inherit
with:
SINK_CONNECTOR_IMAGE: altinityinfra/clickhouse-sink-connector:${{ github.event.number }}-${{ github.sha }}-lt
secrets: inherit

java-tests-kafka:
needs: [build-kafka-lightweight]
uses: ./.github/workflows/sink-connector-kafka-tests.yml

with:
SINK_CONNECTOR_IMAGE: altinityinfra/clickhouse-sink-connector:${{ github.event.number }}-${{ github.sha }}-kafka

java-tests-lightweight:
needs: [build-kafka-lightweight]
uses: ./.github/workflows/sink-connector-lightweight-tests.yml
with:
SINK_CONNECTOR_IMAGE: altinityinfra/clickhouse-sink-connector:${{ github.event.number }}-${{ github.sha }}-lt
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,14 @@ jobs:
java-tests-kafka:
needs: [build-kafka-lightweight]
uses: ./.github/workflows/sink-connector-kafka-tests.yml

with:
SINK_CONNECTOR_IMAGE: altinityinfra/clickhouse-sink-connector:${{ github.event.number }}-${{ github.sha }}-kafka

java-tests-lightweight:
needs: [build-kafka-lightweight]
uses: ./.github/workflows/sink-connector-lightweight-tests.yml
with:
SINK_CONNECTOR_IMAGE: altinityinfra/clickhouse-sink-connector:${{ github.event.number }}-${{ github.sha }}-lt

publish:
needs: [testflows-kafka, testflows-lightweight, java-tests-kafka, java-tests-lightweight]
Expand All @@ -51,4 +55,4 @@ jobs:
with:
release_tag: ${{ inputs.release_tag }}
prerelease: ${{ inputs.prerelease }}
draft: ${{ inputs.draft }}
draft: ${{ inputs.draft }}
16 changes: 15 additions & 1 deletion .github/workflows/sink-connector-kafka-tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
name: Kafka - Java Tests

on:
on:
workflow_call:
inputs:
SINK_CONNECTOR_IMAGE:
description: "Kafka connector docker image"
required: true
type: string
workflow_dispatch:
inputs:
SINK_CONNECTOR_IMAGE:
description: "Kafka connector docker image"
required: true
type: string

env:
SINK_CONNECTOR_IMAGE: ${{ inputs.SINK_CONNECTOR_IMAGE }}

jobs:
java-kafka:
runs-on: ubuntu-latest
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/sink-connector-lightweight-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ name: Lightweight - Java Tests

on:
workflow_call:
inputs:
SINK_CONNECTOR_IMAGE:
description: "Lightweight connector docker image"
required: true
type: string
workflow_dispatch:
inputs:
SINK_CONNECTOR_IMAGE:
description: "Lightweight connector docker image"
required: true
type: string

env:
SINK_CONNECTOR_IMAGE: ${{ inputs.SINK_CONNECTOR_IMAGE }}

jobs:
java-lightweight:
Expand All @@ -21,4 +35,4 @@ jobs:
run: mvn install -DskipTests=true
- name: Build Replicator with Maven
working-directory: sink-connector-lightweight
run: mvn test
run: mvn test

0 comments on commit a00df9d

Please sign in to comment.