Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 47 additions & 11 deletions .github/workflows/integrationTests.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,59 @@
name: Integration Tests

on: [workflow_dispatch]
on:
push:
branches:
- main
paths-ignore:
- "**.md"
- "**/docs/**"
- "**/LICENSE"
- "**/NOTICE"

pull_request:
types:
- opened
- synchronize
- reopened
paths-ignore:
- "**.md"
- "**/docs/**"
- "**/LICENSE"
- "**/NOTICE"

concurrency:
group: ${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
integration-tests:
timeout-minutes: 15
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
clickhouse-version: ["24.3", "25.11"]
steps:
- name: Mask secure properties
run: |
echo "::add-mask::${{ secrets.CLICKHOUSE_PASSWORD }}"
echo "::add-mask::${{ secrets.CLICKHOUSE_CLOUD_SECRET }}"
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
echo "::add-mask::${{ secrets.CLICKHOUSE_PASSWORD }}"
echo "::add-mask::${{ secrets.CLICKHOUSE_CLOUD_SECRET }}"
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Setup JDK
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5
with:
java-version: '17'
distribution: 'adopt'
distribution: 'temurin'
architecture: x64
- name: Setup and execute Gradle 'integrationTest' task
uses: gradle/gradle-build-action@v2
- name: Setup Gradle
uses: gradle/actions/setup-gradle@895252588e0dfbf80467d2d33f34a3ee85235009 # v3
- name: Run integration tests
run: |
./gradlew integrationTest -DlickhouseVersion=${{ matrix.clickhouse-version }}
- name: Upload integration test report on failure
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
arguments: integrationTest --info -D clickhouse.host=${{vars.CLICKHOUSE_HOST}} -D clickhouse.port=${{vars.CLICKHOUSE_PORT}} -D clickhouse.password=${{secrets.CLICKHOUSE_PASSWORD}} -D clickhouse.cloud.organization=${{vars.CLICKHOUSE_CLOUD_ORGANIZATION}} -D clickhouse.cloud.id=${{vars.CLICKHOUSE_CLOUD_ID}} -D clickhouse.cloud.secret=${{secrets.CLICKHOUSE_CLOUD_SECRET}} -D clickhouse.cloud.serviceId=${{vars.CLICKHOUSE_CLOUD_SERVICE_ID}} -D clickhouse.cloud.host=${{vars.CLICKHOUSE_CLOUD_API_HOST}}
name: integration-test-report-${{ matrix.clickhouse-version }}
path: |
**/build/reports/tests/integrationTest/
**/build/test-results/integrationTest/
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ dependencies {
testImplementation("com.clickhouse:client-v2:${project.extra["clickHouseDriverVersion"]}")
testImplementation("com.clickhouse:clickhouse-http-client:${project.extra["clickHouseDriverVersion"]}")
testImplementation("org.slf4j:slf4j-simple:2.0.17")
testImplementation("org.apache.kafka:kafka-clients:4.1.1")

// // Schema Registry client for testing
testImplementation("io.confluent:kafka-schema-registry-client:${project.extra["kafkaPlatformSchemaRegistry"]}")
Expand Down Expand Up @@ -156,6 +157,11 @@ dependencies {
testFixturesImplementation("com.clickhouse:client-v2:${project.extra["clickHouseDriverVersion"]}")
testFixturesImplementation("com.google.code.gson:gson:${project.extra["gson"]}")
testFixturesImplementation("org.json:json:${project.extra["org.json"]}")
testFixturesImplementation("com.fasterxml.jackson.core:jackson-core:${project.extra["jackson"]}")
testFixturesImplementation("com.fasterxml.jackson.core:jackson-databind:${project.extra["jackson"]}")
testFixturesImplementation("com.fasterxml.jackson.core:jackson-annotations:${project.extra["jackson"]}")
testFixturesImplementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:${project.extra["jackson"]}")

}


Expand Down

This file was deleted.

Loading
Loading