From 26d8cdbf851c524d4902edc010b2d02f368d0a22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?WangLiang/=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Wed, 13 Sep 2023 13:25:52 +0800 Subject: [PATCH] optimize: upgrade druid and add `test-druid.yml` (#5831) --- .github/workflows/test-druid.yml | 64 ++++++++++++++++++++++++++++++++ dependencies/pom.xml | 2 +- 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-druid.yml diff --git a/.github/workflows/test-druid.yml b/.github/workflows/test-druid.yml new file mode 100644 index 00000000000..af1d5857c8d --- /dev/null +++ b/.github/workflows/test-druid.yml @@ -0,0 +1,64 @@ +name: "test-druid" + +on: + push: + branches: [ test*, "*.*.*" ] + +jobs: + test-druid: + name: "test-druid" + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + java: [ 8, 11, 17 ] + druid: [ + 1.2.19, + #1.2.18, # Unit test triggered a bug in Druid, see the commit https://github.com/alibaba/druid/commit/6c493f852852fb287ed5fd31ee16c27ead0ea5cf + #1.2.17, # Unit test triggered a bug in Druid, see the commit https://github.com/alibaba/druid/commit/6c493f852852fb287ed5fd31ee16c27ead0ea5cf + 1.2.16, + 1.2.15, + 1.2.14, + 1.2.13, + 1.2.12, + 1.2.11, + 1.2.10, + 1.2.9, + 1.2.8, + 1.2.7, + 1.2.6, + 1.2.5, + 1.2.4, + 1.2.3, + 1.2.2, + 1.2.1, + 1.2.0, + + # not support druid:1.x + #1.1.24, + #1.1.23, + #1.1.22, + #1.1.21, + #1.1.20, + ] + steps: + # step 1 + - name: "Checkout" + uses: actions/checkout@v3 + # step 2 + - name: "Set up Java JDK" + uses: actions/setup-java@v3.12.0 + with: + distribution: 'zulu' + java-version: ${{ matrix.java }} + # step 3 + - name: "Print maven version" + run: ./mvnw -version + # step 4 + - name: "Test with Maven" + run: | + if [ "${{ matrix.java }}" == "8" ]; then + ./mvnw -T 4C clean test -Ddruid.version=${{ matrix.druid }} -Dcheckstyle.skip=false -Dlicense.skip=false -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; + else + ./mvnw -T 4C clean test -Ddruid.version=${{ matrix.druid }} -Dcheckstyle.skip=true -Dlicense.skip=true -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; + fi diff --git a/dependencies/pom.xml b/dependencies/pom.xml index 1a2c27bc67b..80b3977b43d 100644 --- a/dependencies/pom.xml +++ b/dependencies/pom.xml @@ -99,7 +99,7 @@ 1.4.181 2.7.2 - 1.2.6 + 1.2.7 2.9.0 3.4.3