@@ -40,114 +40,33 @@ jobs:
4040 runs-on : ubuntu-latest
4141 strategy :
4242 matrix :
43- project : ["clickhouse-http-client", "client-v2"]
43+ project : ["clickhouse-http-client", "client-v2", "clickhouse-jdbc" ]
4444 fail-fast : false
4545 timeout-minutes : 15
46- name : Java client ( ${{ matrix.project }} ) + CH HEAD
46+ name : ${{ matrix.project }}
4747 steps :
48- - name : Check out repository
49- uses : actions/checkout@v4
50- - name : Check out PR
51- run : |
52- git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 \
53- origin pull/${{ github.event.inputs.pr }}/merge:merged-pr && git checkout merged-pr
54- if : github.event.inputs.pr != ''
55- - name : Install JDK 17 and Maven
48+ - uses : actions/checkout@v5
49+ - name : Set up JDK
5650 uses : actions/setup-java@v4
5751 with :
58- distribution : " temurin"
59- java-version : |
60- 8
61- 17
62- cache : " maven"
63- - name : Setup Toolchain
64- shell : bash
65- run : |
66- mkdir -p $HOME/.m2 \
67- && cat << EOF > $HOME/.m2/toolchains.xml
68- <?xml version="1.0" encoding="UTF8"?>
69- <toolchains>
70- <toolchain>
71- <type>jdk</type>
72- <provides>
73- <version>17</version>
74- </provides>
75- <configuration>
76- <jdkHome>${{ env.JAVA_HOME }}</jdkHome>
77- </configuration>
78- </toolchain>
79- </toolchains>
80- EOF
52+ java-version : ' 8'
53+ distribution : ' temurin'
54+ architecture : x64
8155 - name : Test Java client
8256 run : |
8357 mvn --also-make --batch-mode --no-transfer-progress --projects ${{ matrix.project }} -DclickhouseVersion=$CH_VERSION -Dmaven.javadoc.skip=true clean install
8458 - name : Upload test results
8559 uses : actions/upload-artifact@v4
8660 if : failure()
8761 with :
88- name : result ${{ github.job }}_HEAD
62+ name : result ${{ github.job }}_${{ matrix.project }}
8963 path : |
9064 **/target/failsafe-reports
9165 **/target/surefire-reports
9266 retention-days : 5
9367
94- test-jdbc-driver :
95- runs-on : ubuntu-latest
96- strategy :
97- matrix :
98- protocol : ["apache_http_client"]
99- fail-fast : false
100- timeout-minutes : 20
101- name : JDBC driver + CH HEAD (${{ matrix.protocol }})
102- steps :
103- - name : Check out repository
104- uses : actions/checkout@v4
105- - name : Check out PR
106- run : |
107- git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 \
108- origin pull/${{ github.event.inputs.pr }}/merge:merged-pr && git checkout merged-pr
109- if : github.event.inputs.pr != ''
110- - name : Install JDK 17 and Maven
111- uses : actions/setup-java@v4
112- with :
113- distribution : " temurin"
114- java-version : |
115- 8
116- 17
117- cache : " maven"
118- - name : Setup Toolchain
119- shell : bash
120- run : |
121- mkdir -p $HOME/.m2 \
122- && cat << EOF > $HOME/.m2/toolchains.xml
123- <?xml version="1.0" encoding="UTF8"?>
124- <toolchains>
125- <toolchain>
126- <type>jdk</type>
127- <provides>
128- <version>17</version>
129- </provides>
130- <configuration>
131- <jdkHome>${{ env.JAVA_HOME }}</jdkHome>
132- </configuration>
133- </toolchain>
134- </toolchains>
135- EOF
136- - name : Test JDBC driver
137- run : |
138- mvn --batch-mode --no-transfer-progress --projects clickhouse-jdbc,jdbc-v2 -DclickhouseVersion=$CH_VERSION -Dprotocol=${{ matrix.protocol }} -Dmaven.javadoc.skip=true clean install
139- - name : Upload test results
140- uses : actions/upload-artifact@v4
141- if : failure()
142- with :
143- name : result ${{ github.job }}_${{ matrix.project }}_HEAD
144- path : |
145- **/target/failsafe-reports
146- **/target/surefire-reports
147-
14868 test-r2dbc-driver :
14969 runs-on : ubuntu-latest
150- needs : test-jdbc-driver
15170 strategy :
15271 matrix :
15372 protocol : ["http"]
@@ -156,39 +75,13 @@ jobs:
15675 timeout-minutes : 10
15776 name : R2DBC ${{ matrix.r2dbc }} + CH HEAD (${{ matrix.protocol }})
15877 steps :
159- - name : Check out repository
160- uses : actions/checkout@v4
161- - name : Check out PR
162- run : |
163- git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 \
164- origin pull/${{ github.event.inputs.pr }}/merge:merged-pr && git checkout merged-pr
165- if : github.event.inputs.pr != ''
166- - name : Install JDK 17 and Maven
78+ - uses : actions/checkout@v5
79+ - name : Set up JDK
16780 uses : actions/setup-java@v4
16881 with :
169- distribution : " temurin"
170- java-version : |
171- 8
172- 17
173- cache : " maven"
174- - name : Setup Toolchain
175- shell : bash
176- run : |
177- mkdir -p $HOME/.m2 \
178- && cat << EOF > $HOME/.m2/toolchains.xml
179- <?xml version="1.0" encoding="UTF8"?>
180- <toolchains>
181- <toolchain>
182- <type>jdk</type>
183- <provides>
184- <version>17</version>
185- </provides>
186- <configuration>
187- <jdkHome>${{ env.JAVA_HOME }}</jdkHome>
188- </configuration>
189- </toolchain>
190- </toolchains>
191- EOF
82+ java-version : ' 8'
83+ distribution : ' temurin'
84+ architecture : x64
19285 - name : Test R2DBC ${{ matrix.r2dbc }}
19386 run : |
19487 mvn --batch-mode --no-transfer-progress --projects clickhouse-r2dbc -DclickhouseVersion=$CH_VERSION \
19790 uses : actions/upload-artifact@v4
19891 if : failure()
19992 with :
200- name : result ${{ github.job }}
93+ name : result ${{ github.job }}_${{ matrix.r2dbc }}_${{ matrix.protocol }}
20194 path : |
20295 **/target/failsafe-reports
20396 **/target/surefire-reports
0 commit comments