File tree Expand file tree Collapse file tree 2 files changed +61
-9
lines changed
Expand file tree Collapse file tree 2 files changed +61
-9
lines changed Original file line number Diff line number Diff line change 1+ name : Compatibility Tests
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+
11+ jobs :
12+ test :
13+ runs-on : ubuntu-latest
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ server :
18+ - " nightly"
19+ - " v1.2.790-nightly"
20+ driver :
21+ - " 0.4.0"
22+ - " 0.3.9"
23+ steps :
24+ - uses : actions/checkout@v4
25+
26+ - name : Set up JDK 17
27+ uses : actions/setup-java@v4
28+ with :
29+ distribution : ' temurin'
30+ java-version : ' 17'
31+ cache : ' maven'
32+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }} # Value of the GPG private key to import
33+ gpg-passphrase : MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
34+
35+ - name : Start Cluster With Nginx and Minio
36+ working-directory : tests
37+ run : make up
38+ env :
39+ DATABEND_QUERY_VERSION : ${{ matrix.server }}
40+
41+ - name : Set Release version env variable
42+ run : |
43+ echo "DATABEND_TEST_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
44+
45+ - name : Test with conn to nginx
46+ working-directory : tests/compatibility
47+ run : sh test_compatibility.sh
48+ env :
49+ MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
50+ DATABEND_TEST_CONN_PORT : 8000
51+ DATABEND_QUERY_VERSION : ${{ matrix.server }}
52+ DATABEND_JDBC_VERSION : ${{ matrix.driver }}
53+ TEST_SIDE : " driver"
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- set -exo pipefail
3+ set -ex
44
55curl -sSLfo ./testng.jar https://repo.maven.apache.org/maven2/org/testng/testng/7.11.0/testng-7.11.0.jar
66curl -sSLfo ./semver4j.jar https://repo1.maven.org/maven2/com/vdurmont/semver4j/3.1.0/semver4j-3.1.0.jar
77curl -sSLfo ./jcommander.jar https://repo1.maven.org/maven2/org/jcommander/jcommander/1.83/jcommander-1.83.jar
88curl -sSLfo ./jts-core.jar https://repo1.maven.org/maven2/org/locationtech/jts/jts-core/1.19.0/jts-core-1.19.0.jar
99curl -sSLfo ./slf4j-api.jar https://repo1.maven.org/maven2/org/slf4j/slf4j-api/2.0.16/slf4j-api-2.0.16.jar
1010
11- TEST_VER=0.4.0
12- JDBC_VER=${DATABEND_JDBC_VERSION:- 0.4.0}
11+ original_dir=$( pwd)
12+ cd ../.. && CURRENT_VERSION=$( mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
13+ cd " $original_dir "
1314
14- # for dev
15- # 1. run `mvn clean package -DskipTests`
16- # 2. set TEST_DEV=1
17- # 3. unset DATABEND_JDBC_VERSION
15+ TEST_SIDE=${TEST_SIDE:- server}
16+ TEST_VER=${DATABEND_JDB_TEST_VERSION:- $CURRENT_VERSION }
17+ JDBC_VER=${DATABEND_JDBC_VERSION:- $CURRENT_VERSION }
1818
19- TEST_DEV=${TEST_DEV:- 0}
2019
21- if [ " $TEST_DEV " = " 1 " ]; then
20+ if [ " $TEST_SIDE " = " server " ]; then
2221 curl -sSLfo ./databend-jdbc-tests.jar " https://github.com/databendlabs/databend-jdbc/releases/download/v${TEST_VER} /databend-jdbc-${TEST_VER} -tests.jar"
2322else
2423 cp ../../databend-jdbc/target/databend-jdbc-${TEST_VER} -tests.jar databend-jdbc-tests.jar
You can’t perform that action at this time.
0 commit comments