Skip to content

Commit 9cc0422

Browse files
authored
chore: add unit tests again runtime JDK 24 (#2581)
1 parent 922c382 commit 9cc0422

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,26 @@ jobs:
117117
- run: .kokoro/build.sh
118118
env:
119119
JOB_TYPE: test
120+
units-java24:
121+
# Building using Java 8 and run the tests with Java 24 runtime
122+
name: "units (24)"
123+
runs-on: ubuntu-latest
124+
steps:
125+
- uses: actions/checkout@v4
126+
- uses: actions/setup-java@v3
127+
with:
128+
java-version: 24
129+
distribution: temurin
130+
- name: "Set jvm system property environment variable for surefire plugin (unit tests)"
131+
# Maven surefire plugin (unit tests) allows us to specify JVM to run the tests.
132+
# https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm
133+
run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV
134+
shell: bash
135+
- uses: actions/setup-java@v3
136+
with:
137+
java-version: 8
138+
distribution: temurin
139+
- run: .kokoro/install_dependencies.sh
140+
- run: .kokoro/build.sh
141+
env:
142+
JOB_TYPE: test

0 commit comments

Comments
 (0)