[0.4][Build] Backport the JDK upgrade from 8 to 11 #15888
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Delta Kernel" | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| name: "DK" | |
| runs-on: ubuntu-24.04 | |
| env: | |
| SCALA_VERSION: 2.13.13 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| # Install JDK 11 | |
| - name: install java | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: "zulu" | |
| java-version: "11" | |
| # Run integration tests with JDK 11, as they have no Spark dependency | |
| - name: Run integration tests (JDK 11) | |
| run: | | |
| cd kernel/examples && python run-kernel-examples.py --use-local | |
| # Install JDK 17 | |
| - name: install java | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: "zulu" | |
| java-version: "17" | |
| # Run unit tests with JDK 17. These unit tests depend on Spark, and Spark 4.0+ is JDK 17. | |
| - name: Run unit tests (JDK 17) | |
| run: | | |
| python run-tests.py --group kernel |