Run Kotlin examples #1435
  
    
      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 Kotlin examples | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '45 22 * * *' | |
| pull_request: | |
| branches: | |
| - trunk | |
| paths: | |
| - 'examples/kotlin/**' | |
| push: | |
| branches: | |
| - trunk | |
| paths: | |
| - 'examples/kotlin/**' | |
| env: | |
| DISPLAY: :99 | |
| GITHUB_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }} | |
| GH_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }} | |
| jobs: | |
| tests: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu, windows, macos ] | |
| runs-on: ${{ format('{0}-latest', matrix.os) }} | |
| steps: | |
| - name: Checkout GitHub repo | |
| uses: actions/checkout@v5 | |
| - name: Remove driver directories Windows | |
| if: matrix.os == 'windows' | |
| 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' | |
| run: | | |
| sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER | |
| - name: Start Xvfb | |
| if: matrix.os == 'ubuntu' | |
| run: Xvfb :99 & | |
| - name: Set up Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 11 | |
| - name: Run tests | |
| uses: nick-invision/[email protected] | |
| with: | |
| timeout_minutes: 40 | |
| max_attempts: 2 | |
| command: | | |
| cd examples/kotlin | |
| mvn -B test |