-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (55 loc) · 1.86 KB
/
tests.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
51
52
53
54
55
name: Tests
on:
push:
branches:
- master
- github_actions_test
jobs:
test:
runs-on: ubuntu-latest
concurrency: master_push_group
steps:
- uses: actions/[email protected]
- name: Set up JDK 11 for compilation
uses: actions/[email protected]
with:
java-version: '11'
distribution: 'adopt'
- name: Set up JDK 17 for Build
uses: actions/[email protected]
with:
java-version: '17'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/[email protected]
- name: Run tests with XVFB
id: test_default
uses: GabrielBB/xvfb-action@add653c7ca46237f2fad73a6ae95edfea0835443
with:
run: ./gradlew --continue clean build jacocoTestReport -PenableJacocoXmlReport=true
- name: Upload Test Report
uses: actions/[email protected]
if: failure() && steps.test_default.outcome == 'failure'
with:
name: junit-reports
path: subprojects/*/build/reports/tests/test/**
retention-days: 30
- name: Upload Coverage Report
uses: actions/[email protected]
if: steps.test_default.outcome == 'success'
with:
name: jacoco-reports
path: build/reports/jacoco/jacocoTestReport/html/**
retention-days: 30
- name: Run tests (Java 17) with XVFB
id: test_J17
uses: GabrielBB/xvfb-action@add653c7ca46237f2fad73a6ae95edfea0835443
with:
run: ./gradlew --continue clean build -PcompileJavaVersion=17
- name: Upload Test Report (Java 17)
uses: actions/[email protected]
if: failure() && steps.test_J17.outcome == 'failure'
with:
name: junit-reports-17
path: subprojects/*/build/reports/tests/test/**
retention-days: 30