-
Notifications
You must be signed in to change notification settings - Fork 98
50 lines (47 loc) · 1.32 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
tests:
strategy:
matrix:
project: [ junit4, junit5, junit5-seljup, testng ]
build-tool: [ mvn, gradle ]
os: [ ubuntu-latest ]
java: [ 17 ]
runs-on: ${{ matrix.os }}
env:
DISPLAY: :99
steps:
- name: Checkout GitHub repo
uses: actions/checkout@v4
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Start Xvfb on Linux
if: matrix.os == 'ubuntu-latest'
run: Xvfb $DISPLAY &
- name: Run ${{ matrix.project }} tests with Maven
if: matrix.build-tool == 'mvn'
uses: nick-invision/[email protected]
with:
timeout_minutes: 30
max_attempts: 3
command: |
cd selenium-webdriver-${{ matrix.project }}
mvn test -Dtest=!*Edge*,!*CrossBrowser*
- name: Run ${{ matrix.project }} tests with Gradle
if: matrix.build-tool == 'gradle'
uses: nick-invision/[email protected]
with:
timeout_minutes: 30
max_attempts: 3
command: |
cd selenium-webdriver-${{ matrix.project }}
./gradlew test -PexcludeTests=**/*Edge*,**/*CrossBrowser*