@@ -18,13 +18,16 @@ run-with-gradle:
18
18
RUN ./run-with-gradle.sh
19
19
20
20
# For CI so that GitHub can copy artifacts
21
+ # Coverage reports
22
+ SAVE ARTIFACT --keep-ts build/reports/jacoco/test AS LOCAL build/reports/jacoco/test
21
23
# Javadocs and jars
22
24
SAVE ARTIFACT --keep-ts build/libs/modern-java-practices-0-javadoc.jar
23
25
SAVE ARTIFACT --keep-ts build/docs/javadoc/ AS LOCAL build/docs/javadoc/
24
26
25
27
# Test coverage and badge for Gradle:
26
28
# You need to PICK ONE from Gradle or Maven for your build.
27
- # This project uses Maven (see below) to create the code coverage badge.
29
+ # This project uses Maven (see below) to create the code coverage badge to
30
+ # avoid multiple updating.
28
31
# Commented is the minimum needed from the containerized build when using
29
32
# Gradle.
30
33
# After this enabling this, you still need to update the GitHub action steps
@@ -40,13 +43,16 @@ build-with-maven:
40
43
RUN --secret OWASP_NVD_API_KEY ./mvnw --no-transfer-progress clean verify
41
44
42
45
# For CI so that GitHub can copy artifacts
46
+ # Coverage reports
47
+ SAVE ARTIFACT --keep-ts target/site/jacoco/
43
48
# Javadocs and jars
44
49
SAVE ARTIFACT --keep-ts target/modern-java-practices-0-SNAPSHOT-javadoc.jar AS LOCAL target/modern-java-practices-0-SNAPSHOT-javadoc.jar
45
50
SAVE ARTIFACT --keep-ts target/apidocs/ AS LOCAL target/apidocs/
46
51
SAVE ARTIFACT --keep-ts target/modern-java-practices-0-SNAPSHOT-test-javadoc.jar AS LOCAL target/modern-java-practices-0-SNAPSHOT-test-javadoc.jar
47
52
SAVE ARTIFACT --keep-ts target/testapidocs/ AS LOCAL target/testapidocs/
48
53
49
- # Test coverage and badge
54
+ # Test coverage and badge for Maven:
55
+ # See above comments on enabling for Gradle.
50
56
# Note that ONLY the Maven containerized build updates the README frontpage
51
57
# badge for coverage. This is to avoid multiple updating.
52
58
SAVE ARTIFACT --keep-ts target/site/jacoco/jacoco.csv AS LOCAL target/site/jacoco/jacoco.csv
0 commit comments