From 3e302f791fdd06315e63d8eca9cd113abc93b922 Mon Sep 17 00:00:00 2001 From: yuqi Date: Thu, 5 Sep 2024 21:00:28 +0800 Subject: [PATCH] Fix --- .github/workflows/build.yml | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0a0d5706cfd..b1a61bc90eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,6 +68,39 @@ jobs: - name: Build with Gradle run: ./gradlew build -x test -PjdkVersion=8 + # To check the spark-connector is compatible with scala2.13 + spark-connector-build: + runs-on: ubuntu-latest + timeout-minutes: 30 + needs: changes + if: needs.changes.outputs.source_changes == 'true' + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-java@v4 + with: + java-version: 8 + distribution: 'temurin' + cache: 'gradle' + + - name: Free up disk space + run: | + dev/ci/util_free_space.sh + + - name: Build with Scala2.13 + run: | + ./gradlew :spark-connector:spark-3.4:build -PscalaVersion=2.13 -PskipITs -PskipDockerTests=false + ./gradlew :spark-connector:spark-3.5:build -PscalaVersion=2.13 -PskipITs -PskipDockerTests=false + + - name: Upload unit tests report + uses: actions/upload-artifact@v3 + if: failure() + with: + name: unit test report + path: | + build/reports + spark-connector/**/*.log + build: # The type of runner that the job will run on runs-on: ubuntu-latest @@ -75,8 +108,8 @@ jobs: matrix: java-version: [ 17 ] timeout-minutes: 30 - needs: changes permissions: write-all + needs: changes if: needs.changes.outputs.source_changes == 'true' # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -105,7 +138,7 @@ jobs: with: name: unit test report path: | - ${{ github.workspace }}/**/build/reports + build/reports catalogs/**/*.log catalogs/**/*.tar