Skip to content

Commit 2d9922f

Browse files
authored
Merge pull request #2644 from ClickHouse/add_head_tests
[CI] Added tests against CH head
2 parents cce8ddd + 1604e2f commit 2d9922f

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

.github/workflows/test_head.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Test with CH HEAD
2+
3+
on:
4+
schedule:
5+
- cron: "55 10 * * *"
6+
push:
7+
branches:
8+
- main
9+
paths-ignore:
10+
- "**.md"
11+
- "**/docs/**"
12+
- "**/LICENSE"
13+
- "**/NOTICE"
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
17+
cancel-in-progress: true
18+
19+
env:
20+
CH_VERSION: "head"
21+
22+
jobs:
23+
test-java-client:
24+
runs-on: ubuntu-latest
25+
strategy:
26+
matrix:
27+
project: ["clickhouse-http-client", "client-v2", "clickhouse-jdbc"]
28+
fail-fast: false
29+
timeout-minutes: 15
30+
name: ${{ matrix.project }}
31+
steps:
32+
- uses: actions/checkout@v5
33+
- name: Set up JDK
34+
uses: actions/setup-java@v4
35+
with:
36+
java-version: '17'
37+
distribution: 'temurin'
38+
architecture: x64
39+
- name: Test Java client
40+
run: |
41+
mvn --also-make --batch-mode --no-transfer-progress --projects ${{ matrix.project }} -DclickhouseVersion=$CH_VERSION -Dmaven.javadoc.skip=true clean install
42+
- name: Upload test results
43+
uses: actions/upload-artifact@v4
44+
if: failure()
45+
with:
46+
name: result ${{ github.job }}_${{ matrix.project }}
47+
path: |
48+
**/target/failsafe-reports
49+
**/target/surefire-reports
50+
retention-days: 5
51+
52+
test-r2dbc-driver:
53+
runs-on: ubuntu-latest
54+
strategy:
55+
matrix:
56+
protocol: ["http"]
57+
r2dbc: ["1.0.0.RELEASE", "0.9.1.RELEASE"]
58+
fail-fast: false
59+
timeout-minutes: 10
60+
name: R2DBC ${{ matrix.r2dbc }} + CH HEAD (${{ matrix.protocol }})
61+
steps:
62+
- uses: actions/checkout@v5
63+
- name: Set up JDK
64+
uses: actions/setup-java@v4
65+
with:
66+
java-version: '17'
67+
distribution: 'temurin'
68+
architecture: x64
69+
- name: Test R2DBC ${{ matrix.r2dbc }}
70+
run: |
71+
mvn --batch-mode --no-transfer-progress --projects clickhouse-r2dbc -DclickhouseVersion=$CH_VERSION \
72+
-D'r2dbc-spi.version=${{ matrix.r2dbc }}' -Dprotocol=${{ matrix.protocol }} -Dmaven.javadoc.skip=true clean install
73+
- name: Upload test results
74+
uses: actions/upload-artifact@v4
75+
if: failure()
76+
with:
77+
name: result ${{ github.job }}_${{ matrix.r2dbc }}_${{ matrix.protocol }}
78+
path: |
79+
**/target/failsafe-reports
80+
**/target/surefire-reports

0 commit comments

Comments
 (0)