This is an automated email from the ASF dual-hosted git repository.
snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 8d9eb155 CI: Add rudimentary testing against Java 23 (#817)
8d9eb155 is described below
commit 8d9eb1551f621d171de6d75df82cf490e44c84be
Author: Robert Stupp <[email protected]>
AuthorDate: Mon Jan 20 11:23:47 2025 +0100
CI: Add rudimentary testing against Java 23 (#817)
Adds additional steps to verify that the build works against Java 23 and
runs some selected tests.
---
.github/workflows/gradle.yml | 35 +++++++++++++++++++++++++----------
1 file changed, 25 insertions(+), 10 deletions(-)
diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
index 1770454c..e37afc29 100644
--- a/.github/workflows/gradle.yml
+++ b/.github/workflows/gradle.yml
@@ -70,13 +70,28 @@ jobs:
path: |
**/build/test-results/**
- # NOTE: The Gradle Wrapper is the default and recommended way to run
Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
- # If your project does not have the Gradle Wrapper configured, you can use
the following configuration to run Gradle with a specified version.
- #
- # - name: Setup Gradle
- # uses:
gradle/actions/setup-gradle@16bf8bc8fe830fa669c3c9f914d3eb147c629707 # v4
- # with:
- # gradle-version: '8.6'
- #
- # - name: Build with Gradle 8.6
- # run: gradle build
+ - name: Stop Gradle daemons
+ run: ./gradlew --stop
+
+ # Ensure that the build works properly when building against the "latest
greatest" Java version
+ - name: Set up JDK 23
+ uses: actions/setup-java@v4
+ with:
+ java-version: '23'
+ distribution: 'temurin'
+ - name: Show Java version
+ run: java -version
+ - name: Clean
+ run: ./gradlew clean
+ - name: Build
+ run: ./gradlew compileAll
+ - name: Run selected tests
+ run: ./gradlew :polaris-quarkus-service:intTest
+
+ - name: Archive test results
+ uses: actions/upload-artifact@v4
+ if: always()
+ with:
+ name: upload-test-artifacts-java-23
+ path: |
+ **/build/test-results/**