Skip to content

Commit

Permalink
ci: Update ci.yaml to introduce Java 21 unit testing (#1907) (#2400)
Browse files Browse the repository at this point in the history
* 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 <90280028+ddixit14@users.noreply.github.com>
  • Loading branch information
3 people committed Dec 12, 2023
1 parent 4a12a5e commit 76765d5
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/.OwlBot.lock.yaml
Expand Up @@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
digest: sha256:fb7584f6adb3847ac480ed49a4bfe1463965026b2919a1be270e3174f3ce1191
# created: 2023-10-26T23:22:21.357007231Z
digest: sha256:6f431774e11cc46619cf093fd1481193c4024031073697fa18f0099b943aab88
# created: 2023-12-01T19:50:20.444857406Z
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Expand Up @@ -86,3 +86,27 @@ jobs:
- run: .kokoro/build.sh
env:
JOB_TYPE: clirr

units-java21:
# Building using Java 8 and run the tests with Java 21 runtime
name: "units (21)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 21
distribution: temurin
- name: "Set jvm system property environment variable for surefire plugin (unit tests)"
# Maven surefire plugin (unit tests) allows us to specify JVM to run the tests.
# https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm
run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV
shell: bash
- uses: actions/setup-java@v3
with:
java-version: 8
distribution: temurin
- run: .kokoro/install_dependencies.sh
- run: .kokoro/build.sh
env:
JOB_TYPE: test
2 changes: 1 addition & 1 deletion .kokoro/presubmit/graalvm-native-17.cfg
Expand Up @@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17:22.3.2"
value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17:22.3.3"
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/presubmit/graalvm-native.cfg
Expand Up @@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/graalvm:22.3.2"
value: "gcr.io/cloud-devrel-kokoro-resources/graalvm:22.3.3"
}

env_vars: {
Expand Down

0 comments on commit 76765d5

Please sign in to comment.