-
Notifications
You must be signed in to change notification settings - Fork 12
54 lines (46 loc) · 1.42 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
51
52
53
54
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
services:
docker:
image: docker:dind
options: --privileged
steps:
- name: Configure JDK
uses: actions/setup-java@v3
with:
java-version: 16
distribution: 'temurin'
- name: Check out Git repository
uses: actions/checkout@v3
- name: Gradle Build and Test
run: |
./gradlew build test codeCoverageReport testAggregateReports
- name: Add coverage to PR
id: jacoco
uses: madrapps/jacoco-report@v1.6
with:
paths: "./build/reports/jacoco/codeCoverageReport/codeCoverageReport.xml"
token: ${{ secrets.RENOVATE_TOKEN }}
min-coverage-overall: 40
min-coverage-changed-files: 60
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
report_paths: "**/build/reports/xml/**/TEST-*.xml"
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# files: ./build/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml
# flags: unittests
# name: codecov-umbrella
# fail_ci_if_error: true
# verbose: true
# java-version: 11