File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,21 @@ jobs:
59
59
env :
60
60
JOB_TYPE : test
61
61
windows :
62
+ # Building using Java 8 and run the tests with Java 11 runtime
62
63
runs-on : windows-latest
63
64
steps :
64
65
- name : Support longpaths
65
66
run : git config --system core.longpaths true
66
67
- uses : actions/checkout@v4
68
+ - uses : actions/setup-java@v4
69
+ with :
70
+ java-version : 11
71
+ distribution : temurin
72
+ - name : " Set jvm system property environment variable for surefire plugin (unit tests)"
73
+ # Maven surefire plugin (unit tests) allows us to specify JVM to run the tests.
74
+ # https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm
75
+ run : echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV
76
+ shell : bash
67
77
- uses : actions/setup-java@v4
68
78
with :
69
79
distribution : temurin
You can’t perform that action at this time.
0 commit comments