-
-
Notifications
You must be signed in to change notification settings - Fork 53
48 lines (44 loc) · 1.19 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
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
DISPLAY: :99
WDM_GITHUBTOKEN: ${{ secrets.WDM_GITHUBTOKEN }}
GITHUB_TOKEN: ${{ secrets.WDM_GITHUBTOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
java: [ '17' ]
steps:
- name: Checkout GitHub repo
uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Start Xvfb
run: Xvfb :99 &
- name: Run tests
uses: nick-invision/[email protected]
with:
timeout_minutes: 20
max_attempts: 3
command: mvn -B test
- name: Upload analysis to SonarCloud
if: success() && !contains(github.ref, 'pull')
run: >
mvn -B sonar:sonar
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.organization=bonigarcia-github
-Dsonar.projectKey=io.github.bonigarcia:selenium-jupiter
- name: Upload coverage to Codecov
if: success() && !contains(github.ref, 'pull')
uses: codecov/codecov-action@v1