@@ -45,43 +45,50 @@ jobs:
45
45
if : matrix.os == 'ubuntu'
46
46
run : Xvfb :99 &
47
47
- name : Set up Java
48
+ id : java
48
49
uses : actions/setup-java@v4
49
50
with :
50
51
distribution : ' temurin'
51
- java-version : 11
52
+ java-version : 17
53
+ - name : Import test cert non-Windows
54
+ if : matrix.os != 'windows'
55
+ run : sudo keytool -import -noprompt -trustcacerts -alias SeleniumHQ -file examples/java/src/test/resources/tls.crt -keystore ${{ steps.java.outputs.path }}/lib/security/cacerts -storepass changeit
56
+ - name : Import test cert Windows
57
+ if : matrix.os == 'windows'
58
+ run : keytool -import -noprompt -trustcacerts -alias SeleniumHQ -file examples/java/src/test/resources/tls.crt -keystore ${{ steps.java.outputs.path }}/lib/security/cacerts -storepass changeit
52
59
- name : Run Tests Stable
53
60
if : matrix.release == 'stable'
54
61
uses : nick-invision/retry@v3.0.0
55
62
with :
56
- timeout_minutes : 20
63
+ timeout_minutes : 40
57
64
max_attempts : 3
58
65
command : |
59
66
cd examples/java
60
- mvn -B test
67
+ mvn -B test -D"jdk.internal.httpclient.disableHostnameVerification=true"
61
68
- name : Run Tests Nightly Linux/macOS
62
69
if : matrix.release == 'nightly' && matrix.os != 'windows'
63
70
uses : nick-invision/retry@v3.0.0
64
71
with :
65
- timeout_minutes : 20
72
+ timeout_minutes : 40
66
73
max_attempts : 3
67
74
command : |
68
75
pip install yq
69
76
xml_content=$(curl -sf https://oss.sonatype.org/service/local/repositories/snapshots/content/org/seleniumhq/selenium/selenium-java/)
70
77
latest_snapshot=$(echo "$xml_content" | xq '.content.data."content-item"' | jq -r 'sort_by(.lastModified) | last | .text')
71
78
echo "Latest Selenium Snapshot: $latest_snapshot"
72
79
cd examples/java
73
- mvn -B -U test -Dselenium.version="$latest_snapshot "
80
+ mvn -B -U test -D"jdk.internal.httpclient.disableHostnameVerification=true "
74
81
75
82
- name : Run Tests Nightly Windows
76
83
if : matrix.release == 'nightly' && matrix.os == 'windows'
77
84
uses : nick-invision/retry@v3.0.0
78
85
with :
79
- timeout_minutes : 20
86
+ timeout_minutes : 40
80
87
max_attempts : 3
81
88
command : |
82
89
pip install yq
83
90
$xml_content = Invoke-WebRequest -Uri "https://oss.sonatype.org/service/local/repositories/snapshots/content/org/seleniumhq/selenium/selenium-java/"
84
91
$latest_snapshot = $xml_content.Content | xq '.content.data.\"content-item\"' | jq -r 'sort_by(.lastModified) | last | .text'
85
92
Write-Output "Latest Selenium Snapshot: $latest_snapshot"
86
93
cd examples/java
87
- mvn -B -U test "-Dselenium.version=$latest_snapshot "
94
+ mvn -B -U test -D"jdk.internal.httpclient.disableHostnameVerification=true "
0 commit comments