Update nightly version #958
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Java examples | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '35 22 * * *' | |
pull_request: | |
branches: | |
- trunk | |
paths: | |
- 'examples/java/**' | |
push: | |
branches: | |
- trunk | |
paths: | |
- 'examples/java/**' | |
env: | |
DISPLAY: :99 | |
GITHUB_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }} | |
GH_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }} | |
jobs: | |
test_examples: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
release: [ stable, nightly ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout GitHub repo | |
uses: actions/checkout@v4 | |
- name: Remove driver directories Windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
rm "$env:ChromeWebDriver" -r -v | |
rm "$env:EdgeWebDriver" -r -v | |
rm "$env:GeckoWebDriver" -r -v | |
- name: Remove driver directories Non-Windows | |
if: matrix.os != 'windows-latest' | |
run: | | |
sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER | |
- name: Start Xvfb | |
if: matrix.os == 'ubuntu-latest' | |
run: Xvfb :99 & | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 11 | |
- name: Run Tests Stable | |
if: matrix.release == 'stable' | |
uses: nick-invision/[email protected] | |
with: | |
timeout_minutes: 20 | |
max_attempts: 3 | |
command: | | |
cd examples/java | |
mvn -B test | |
- name: Run Tests Nightly | |
if: matrix.release == 'nightly' | |
uses: nick-invision/[email protected] | |
with: | |
timeout_minutes: 20 | |
max_attempts: 3 | |
command: | | |
cd examples/java | |
mvn -B -U test -Dselenium.version=4.20.0-SNAPSHOT |