Skip to content

Commit c160c68

Browse files
committed
Split tests to workflow for Java & Scala
1 parent 9d641d9 commit c160c68

File tree

2 files changed

+42
-11
lines changed

2 files changed

+42
-11
lines changed

.github/workflows/tests-scala.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Apache Flink ClickHouse Connector Tests CI (Scala)
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
clickhouse: [ "23.7", "24.3", "latest", "cloud" ]
12+
name: Apache Flink ClickHouse Connector tests with ClickHouse ${{ matrix.clickhouse }}
13+
steps:
14+
- name: Check for Cloud Credentials
15+
id: check-cloud-credentials
16+
run: |
17+
if [[ "${{ matrix.clickhouse }}" == "cloud" && (-z "${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_HOST_SMT }}" || -z "${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_PASSWORD_SMT }}") ]]; then
18+
echo "SKIP_STEP=true" >> $GITHUB_ENV
19+
else
20+
echo "SKIP_STEP=false" >> $GITHUB_ENV
21+
fi
22+
shell: bash
23+
- uses: actions/checkout@v3
24+
if: env.SKIP_STEP != 'true'
25+
- name: Set up JDK 17
26+
if: env.SKIP_STEP != 'true'
27+
uses: actions/setup-java@v3
28+
with:
29+
java-version: '21'
30+
distribution: 'adopt'
31+
architecture: x64
32+
- name: Setup and execute Gradle 'runScalaTests' task
33+
if: env.SKIP_STEP != 'true'
34+
uses: gradle/gradle-build-action@v2
35+
env:
36+
CLICKHOUSE_VERSION: ${{ matrix.clickhouse }}
37+
CLICKHOUSE_CLOUD_HOST: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_HOST_SMT }}
38+
CLICKHOUSE_CLOUD_PASSWORD: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_PASSWORD_SMT }}
39+
with:
40+
arguments: runScalaTests

.github/workflows/tests.yaml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Apache Flink ClickHouse Connector Tests CI
1+
name: Apache Flink ClickHouse Connector Tests CI (Java)
22

33
on: [push]
44

@@ -37,13 +37,4 @@ jobs:
3737
CLICKHOUSE_CLOUD_HOST: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_HOST_SMT }}
3838
CLICKHOUSE_CLOUD_PASSWORD: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_PASSWORD_SMT }}
3939
with:
40-
arguments: test
41-
- name: Setup and execute Gradle 'runScalaTests' task
42-
if: env.SKIP_STEP != 'true'
43-
uses: gradle/gradle-build-action@v2
44-
env:
45-
CLICKHOUSE_VERSION: ${{ matrix.clickhouse }}
46-
CLICKHOUSE_CLOUD_HOST: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_HOST_SMT }}
47-
CLICKHOUSE_CLOUD_PASSWORD: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_PASSWORD_SMT }}
48-
with:
49-
arguments: runScalaTests
40+
arguments: test

0 commit comments

Comments
 (0)