File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
Build :
10
10
runs-on : ubuntu-latest
11
+
12
+ # pull-requests write permission needed for Jacoco report in PR comment.
11
13
permissions :
12
14
contents : read
15
+ pull-requests : write
13
16
14
17
steps :
15
18
- uses : actions/checkout@v1
34
37
./gradlew build
35
38
./gradlew distZip testCodeCoverageReport javadoc
36
39
40
+ # Add a Jacoco report to the action output using badging tool.
41
+ # The badges can be added readily; see a comment in #419.
42
+ # However, we have no way to view them in the README.md.
43
+ - name : Generate Jacoco coverage report in Action
44
+ uses : cicirello/jacoco-badge-generator@v2
45
+ with :
46
+ jacoco-csv-file : build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.csv
47
+
48
+ # Add coverage report to the pull request as comment.
49
+ # Basic coverage checks are implemented.
50
+ - name : Add Jacoco coverage report in PR comment
51
+ id : jacoco
52
+ uses : madrapps/jacoco-report@v1.7.1
53
+ with :
54
+ paths : build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml
55
+ token : ${{ secrets.GITHUB_TOKEN }}
56
+ min-coverage-overall : 50
57
+ min-coverage-changed-files : 60
58
+
37
59
# Confirm the test code inside wres-external-services-tests zip compiles
38
60
- name : Compile external-services-tests
39
61
run : |
You can’t perform that action at this time.
0 commit comments