Skip to content

Commit 69eb711

Browse files
committed
Fix
1 parent e195cf7 commit 69eb711

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/actions/java-test/action.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,17 @@ runs:
3838
shell: bash
3939
run: |
4040
echo "JAVA_VERSION=${JAVA_VERSION}"
41-
./mvnw -B compile test-compile scalafix:scalafix -Psemanticdb -Djava.version=${JAVA_VERSION}
41+
if [ $JAVA_VERSION == "1.8" ]; then
42+
./mvnw -B compile test-compile scalafix:scalafix -Psemanticdb -Djava.version=${JAVA_VERSION} -Dspotless.version=2.29.0
43+
else
44+
./mvnw -B compile test-compile scalafix:scalafix -Psemanticdb -Djava.version=${JAVA_VERSION}
45+
fi
4246
4347
- name: Run tests
4448
shell: bash
4549
run: |
46-
SPARK_HOME=`pwd` ./mvnw -B clean install -Djava.version=${JAVA_VERSION}
50+
if [ $JAVA_VERSION == "1.8" ]; then
51+
SPARK_HOME=`pwd` ./mvnw -B clean install -Djava.version=${JAVA_VERSION} -Dspotless.version=2.29.0
52+
else
53+
SPARK_HOME=`pwd` ./mvnw -B clean install -Djava.version=${JAVA_VERSION}
54+
fi

.github/actions/rust-test/action.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ runs:
5151
shell: bash
5252
run: |
5353
cd common
54-
../mvnw -B clean compile -DskipTests -Djava.version=${JAVA_VERSION}
54+
if [ $JAVA_VERSION == "1.8" ]; then
55+
../mvnw -B clean compile -DskipTests -Djava.version=${JAVA_VERSION} -Dspotless.version=2.29.0
56+
else
57+
../mvnw -B clean compile -DskipTests -Djava.version=${JAVA_VERSION}
58+
fi
5559
5660
- name: Run Cargo test
5761
shell: bash

0 commit comments

Comments
 (0)