Skip to content

Commit

Permalink
Fix ci testing environment with java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
cindy-peng committed Jan 14, 2025
1 parent 765f311 commit 00c0d21
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,21 @@ jobs:
env:
JOB_TYPE: test
windows:
# Building using Java 8 and run the tests with Java 11 runtime
runs-on: windows-latest
steps:
- name: Support longpaths
run: git config --system core.longpaths true
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
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@v4
with:
distribution: temurin
Expand Down

0 comments on commit 00c0d21

Please sign in to comment.