Skip to content

Commit aef070f

Browse files
committed
Build against Selenium nightly build in a separate nightly job
Otherwise, we break build of every single PR when something is wrong with the Selenium nightly build.
1 parent 1abd110 commit aef070f

File tree

2 files changed

+49
-8
lines changed

2 files changed

+49
-8
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build against Selenium nightly build
2+
3+
on:
4+
schedule:
5+
- cron: '6 6 * * *'
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9+
cancel-in-progress: true
10+
11+
env:
12+
CI: true
13+
14+
jobs:
15+
build:
16+
17+
strategy:
18+
matrix:
19+
include:
20+
- java: 17
21+
platform: ubuntu-latest
22+
- java: 21
23+
platform: ubuntu-latest
24+
- java: 25
25+
platform: ubuntu-latest
26+
fail-fast: false
27+
28+
runs-on: ${{ matrix.platform }}
29+
30+
name: JDK ${{ matrix.java }} - ${{ matrix.platform }}
31+
steps:
32+
- uses: actions/checkout@v6
33+
34+
- name: Set up JDK ${{ matrix.java }}
35+
uses: actions/setup-java@v5
36+
with:
37+
distribution: 'zulu'
38+
java-version: ${{ matrix.java }}
39+
40+
- name: Setup Gradle
41+
uses: gradle/actions/setup-gradle@v5
42+
43+
- name: Build with Gradle
44+
run: |
45+
latest_snapshot=$(curl -sf https://raw.githubusercontent.com/SeleniumHQ/selenium/refs/heads/trunk/java/version.bzl | grep 'SE_VERSION' | sed 's/.*"\(.*\)".*/\1/')
46+
echo ">>> $latest_snapshot"
47+
echo "latest_snapshot=$latest_snapshot" >> "$GITHUB_ENV"
48+
./gradlew clean build -PisCI -Pselenium.version=$latest_snapshot

.github/workflows/ci.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,7 @@ jobs:
7979
- name: Setup Gradle
8080
uses: gradle/actions/setup-gradle@v5
8181

82-
- name: Build with Gradle against Selenium nightly build
83-
run: |
84-
latest_snapshot=$(curl -sf https://raw.githubusercontent.com/SeleniumHQ/selenium/refs/heads/trunk/java/version.bzl | grep 'SE_VERSION' | sed 's/.*"\(.*\)".*/\1/')
85-
echo ">>> $latest_snapshot"
86-
echo "latest_snapshot=$latest_snapshot" >> "$GITHUB_ENV"
87-
./gradlew clean build -PisCI -Pselenium.version=$latest_snapshot
88-
89-
- name: Build with Gradle against stable Selenium version
82+
- name: Build with Gradle
9083
run: |
9184
./gradlew clean build -PisCI
9285

0 commit comments

Comments
 (0)