Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/ci-selenium-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build against Selenium nightly build

on:
schedule:
- cron: '6 6 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
CI: true

jobs:
build:

strategy:
matrix:
include:
- java: 17
platform: ubuntu-latest
- java: 21
platform: ubuntu-latest
- java: 25
platform: ubuntu-latest
fail-fast: false

runs-on: ${{ matrix.platform }}

name: JDK ${{ matrix.java }} - ${{ matrix.platform }}
steps:
- uses: actions/checkout@v6

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5

- name: Build with Gradle
run: |
latest_snapshot=$(curl -sf https://raw.githubusercontent.com/SeleniumHQ/selenium/refs/heads/trunk/java/version.bzl | grep 'SE_VERSION' | sed 's/.*"\(.*\)".*/\1/')
echo ">>> $latest_snapshot"
echo "latest_snapshot=$latest_snapshot" >> "$GITHUB_ENV"
./gradlew clean build -PisCI -Pselenium.version=$latest_snapshot
9 changes: 1 addition & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,7 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5

- name: Build with Gradle against Selenium nightly build
run: |
latest_snapshot=$(curl -sf https://raw.githubusercontent.com/SeleniumHQ/selenium/refs/heads/trunk/java/version.bzl | grep 'SE_VERSION' | sed 's/.*"\(.*\)".*/\1/')
echo ">>> $latest_snapshot"
echo "latest_snapshot=$latest_snapshot" >> "$GITHUB_ENV"
./gradlew clean build -PisCI -Pselenium.version=$latest_snapshot

- name: Build with Gradle against stable Selenium version
- name: Build with Gradle
run: |
./gradlew clean build -PisCI

Expand Down
Loading