-
Notifications
You must be signed in to change notification settings - Fork 95
40 lines (37 loc) · 987 Bytes
/
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
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@v3
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v3
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 ${{ matrix.build-tool }}
uses: nick-invision/retry@v2.8.3
with:
timeout_minutes: 30
max_attempts: 3
command: |
cd selenium-webdriver-${{ matrix.project }}
${{ matrix.build-tool }} test