From 69eb711390357a2921d201c71fab3d30bc7f244f Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Wed, 21 Feb 2024 22:15:58 -0800 Subject: [PATCH] Fix --- .github/actions/java-test/action.yaml | 12 ++++++++++-- .github/actions/rust-test/action.yaml | 6 +++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/actions/java-test/action.yaml b/.github/actions/java-test/action.yaml index 9c7de9a82..ae6d80dee 100644 --- a/.github/actions/java-test/action.yaml +++ b/.github/actions/java-test/action.yaml @@ -38,9 +38,17 @@ runs: shell: bash run: | echo "JAVA_VERSION=${JAVA_VERSION}" - ./mvnw -B compile test-compile scalafix:scalafix -Psemanticdb -Djava.version=${JAVA_VERSION} + if [ $JAVA_VERSION == "1.8" ]; then + ./mvnw -B compile test-compile scalafix:scalafix -Psemanticdb -Djava.version=${JAVA_VERSION} -Dspotless.version=2.29.0 + else + ./mvnw -B compile test-compile scalafix:scalafix -Psemanticdb -Djava.version=${JAVA_VERSION} + fi - name: Run tests shell: bash run: | - SPARK_HOME=`pwd` ./mvnw -B clean install -Djava.version=${JAVA_VERSION} + if [ $JAVA_VERSION == "1.8" ]; then + SPARK_HOME=`pwd` ./mvnw -B clean install -Djava.version=${JAVA_VERSION} -Dspotless.version=2.29.0 + else + SPARK_HOME=`pwd` ./mvnw -B clean install -Djava.version=${JAVA_VERSION} + fi diff --git a/.github/actions/rust-test/action.yaml b/.github/actions/rust-test/action.yaml index a013a7bae..cb6c29c82 100644 --- a/.github/actions/rust-test/action.yaml +++ b/.github/actions/rust-test/action.yaml @@ -51,7 +51,11 @@ runs: shell: bash run: | cd common - ../mvnw -B clean compile -DskipTests -Djava.version=${JAVA_VERSION} + if [ $JAVA_VERSION == "1.8" ]; then + ../mvnw -B clean compile -DskipTests -Djava.version=${JAVA_VERSION} -Dspotless.version=2.29.0 + else + ../mvnw -B clean compile -DskipTests -Djava.version=${JAVA_VERSION} + fi - name: Run Cargo test shell: bash