This is an automated email from the ASF dual-hosted git repository.

jiayu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-sedona.git


The following commit(s) were added to refs/heads/master by this push:
     new 9fff7850 [SEDONA-211] Use CI to ensure source code work for both JDK 8 
and 11 (#725)
9fff7850 is described below

commit 9fff785091bbbc6a405acec0bf719ab5876e854f
Author: Jia Yu <[email protected]>
AuthorDate: Sun Dec 11 15:16:23 2022 -0800

    [SEDONA-211] Use CI to ensure source code work for both JDK 8 and 11 (#725)
---
 .github/workflows/java.yml | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml
index 247d592b..7c53d67c 100644
--- a/.github/workflows/java.yml
+++ b/.github/workflows/java.yml
@@ -19,24 +19,39 @@ jobs:
           - spark: 3.3.0
             scala: 2.13.8
             jackson: 2.13.3
+            jdk: '8'
+            skipTests: ''
           - spark: 3.3.0
             scala: 2.12.15
             jackson: 2.13.3
+            jdk: '8'
+            skipTests: ''            
+          - spark: 3.3.0
+            scala: 2.12.15
+            jackson: 2.13.3
+            jdk: '11'
+            skipTests: '-DskipTests'            
           - spark: 3.2.0
             scala: 2.12.15
             jackson: 2.12.3
+            jdk: '8'
+            skipTests: ''            
           - spark: 3.1.2
             scala: 2.12.15
             jackson: 2.10.0
+            jdk: '8'
+            skipTests: ''            
           - spark: 3.0.3
             scala: 2.12.15
             jackson: 2.10.0
+            jdk: '8'
+            skipTests: ''
 
     steps:
     - uses: actions/checkout@v2
     - uses: actions/setup-java@v1
       with:
-        java-version: '8'
+        java-version: ${{ matrix.jdk }}
     - uses: actions/setup-python@v2
       with:
         python-version: '3.7'
@@ -51,7 +66,8 @@ jobs:
         SPARK_VERSION: ${{ matrix.spark }}
         SCALA_VERSION: ${{ matrix.scala }}
         JACKSON_VERSION: ${{ matrix.jackson }}
-      run: mvn -q clean install -Dscala=${SCALA_VERSION:0:4} 
-Dspark.version=${SPARK_VERSION} -Dsedona.jackson.version=${JACKSON_VERSION}; \
+        SKIP_TESTS: ${{ matrix.skipTests}}
+      run: mvn -q clean install -Dscala=${SCALA_VERSION:0:4} 
-Dspark.version=${SPARK_VERSION} -Dsedona.jackson.version=${JACKSON_VERSION} 
${SKIP_TESTS}
     - run: mkdir staging
     - run: cp core/target/sedona-*.jar staging
     - run: cp sql/target/sedona-*.jar staging

Reply via email to