Skip to content

Commit 54eed24

Browse files
committed
chore: add jdk 24 to ci tests
1 parent 6efe7e8 commit 54eed24

File tree

2 files changed

+34
-1
lines changed
  • .github/workflows
  • hermetic_build/library_generation/owlbot/templates/java_library/.github/workflows

2 files changed

+34
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,39 @@ jobs:
9191
- name: Integration Tests
9292
run: |
9393
bazelisk --batch test //test/integration/...
94+
build-java-24:
95+
name: "build(24) except self-service clients"
96+
# Support for Java 24 is available for all use cases except self-service clients.
97+
runs-on: ubuntu-22.04
98+
steps:
99+
- uses: actions/checkout@v4
100+
- uses: actions/setup-java@v4
101+
with:
102+
java-version: 24
103+
distribution: temurin
104+
cache: maven
105+
- run: java -version
106+
- name: Unit Tests
107+
run: |
108+
mvn test --batch-mode --no-transfer-progress -Dcheckstyle.skip \
109+
-Dfmt.skip -DenableTestCoverage
110+
# The `envVarTest` profile runs tests that require an environment variable
111+
- name: Env Var Tests
112+
run: |
113+
mvn test --batch-mode --no-transfer-progress -Dcheckstyle.skip \
114+
-Dfmt.skip -DenableTestCoverage -PenvVarTest
115+
# Set the Env Var for this step only
116+
env:
117+
GOOGLE_CLOUD_UNIVERSE_DOMAIN: random.com
118+
GOOGLE_CLOUD_ENABLE_DIRECT_PATH_XDS: true
119+
GOOGLE_SDK_JAVA_LOGGING: true
120+
- run: bazelisk version
121+
- name: Install Maven modules
122+
run: |
123+
mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip
124+
- name: Integration Tests
125+
run: |
126+
bazelisk --batch test //test/integration/...
94127
build-java8-except-gapic-generator-java:
95128
name: "build(8) except for gapic-generator-java"
96129
runs-on: ubuntu-22.04

hermetic_build/library_generation/owlbot/templates/java_library/.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
java: [11, 17, 21]
28+
java: [11, 17, 21, 24]
2929
steps:
3030
- uses: actions/checkout@v4
3131
- uses: actions/setup-java@v4

0 commit comments

Comments
 (0)