Skip to content

Commit 76765d5

Browse files
ci: Update ci.yaml to introduce Java 21 unit testing (#1907) (#2400)
* ci: Update ci.yaml to introduce Java 21 unit testing (#1907) Source-Link: googleapis/synthtool@c06d605 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:6f431774e11cc46619cf093fd1481193c4024031073697fa18f0099b943aab88 * chore: Update ci.yaml to include Java 21 unit testing * chore: Update build.sh to include mvn clean install -U * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Add - run: .kokoro/install_dependencies.sh to Units(21) --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Deepankar Dixit <[email protected]>
1 parent 4a12a5e commit 76765d5

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
16-
digest: sha256:fb7584f6adb3847ac480ed49a4bfe1463965026b2919a1be270e3174f3ce1191
17-
# created: 2023-10-26T23:22:21.357007231Z
16+
digest: sha256:6f431774e11cc46619cf093fd1481193c4024031073697fa18f0099b943aab88
17+
# created: 2023-12-01T19:50:20.444857406Z

.github/workflows/ci.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,27 @@ jobs:
8686
- run: .kokoro/build.sh
8787
env:
8888
JOB_TYPE: clirr
89+
90+
units-java21:
91+
# Building using Java 8 and run the tests with Java 21 runtime
92+
name: "units (21)"
93+
runs-on: ubuntu-latest
94+
steps:
95+
- uses: actions/checkout@v3
96+
- uses: actions/setup-java@v3
97+
with:
98+
java-version: 21
99+
distribution: temurin
100+
- name: "Set jvm system property environment variable for surefire plugin (unit tests)"
101+
# Maven surefire plugin (unit tests) allows us to specify JVM to run the tests.
102+
# https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm
103+
run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV
104+
shell: bash
105+
- uses: actions/setup-java@v3
106+
with:
107+
java-version: 8
108+
distribution: temurin
109+
- run: .kokoro/install_dependencies.sh
110+
- run: .kokoro/build.sh
111+
env:
112+
JOB_TYPE: test

.kokoro/presubmit/graalvm-native-17.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Configure the docker image for kokoro-trampoline.
44
env_vars: {
55
key: "TRAMPOLINE_IMAGE"
6-
value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17:22.3.2"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17:22.3.3"
77
}
88

99
env_vars: {

.kokoro/presubmit/graalvm-native.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Configure the docker image for kokoro-trampoline.
44
env_vars: {
55
key: "TRAMPOLINE_IMAGE"
6-
value: "gcr.io/cloud-devrel-kokoro-resources/graalvm:22.3.2"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/graalvm:22.3.3"
77
}
88

99
env_vars: {

0 commit comments

Comments
 (0)