@@ -17,9 +17,13 @@ run-with-gradle:
17
17
COPY run-with-gradle.sh .
18
18
RUN ./run-with-gradle.sh
19
19
20
- # For CI so that GitHub can copy artifacts
21
-
20
+ # For CI so that GitHub can copy artifacts
22
21
# Coverage reports
22
+ SAVE ARTIFACT --keep-ts build/reports/jacoco/test/ AS LOCAL build/reports/jacoco/test/
23
+ # Javadocs and jars
24
+ SAVE ARTIFACT --keep-ts build/libs/modern-java-practices-0-javadoc.jar
25
+ SAVE ARTIFACT --keep-ts build/docs/javadoc/ AS LOCAL build/docs/javadoc/
26
+
23
27
# Test coverage and badge for Gradle:
24
28
# You need to PICK ONE from Gradle or Maven for your build.
25
29
# This project uses Maven (see below) to create the code coverage badge to
@@ -28,12 +32,7 @@ run-with-gradle:
28
32
# Gradle.
29
33
# After this enabling this, you still need to update the GitHub action steps
30
34
# to generate the badge using a custom path to the CVS report.
31
- SAVE ARTIFACT --keep-ts build/reports/jacoco/test/ AS LOCAL build/reports/jacoco/test/
32
- SAVE ARTIFACT --keep-ts build/reports/jacoco/test/jacocoTestReport.csv AS LOCAL build/reports/jacoco/test/jacocoTestReport.csv
33
-
34
- # Javadocs and jars
35
- SAVE ARTIFACT --keep-ts build/libs/modern-java-practices-0-javadoc.jar
36
- SAVE ARTIFACT --keep-ts build/docs/javadoc/ AS LOCAL build/docs/javadoc/
35
+ # SAVE ARTIFACT --save-ts build/reports/jacoco/test/jacocoTestReport.csv AS LOCAL build/reports/jacoco/test/jacocoTestReport.csv
37
36
38
37
build-with-maven :
39
38
COPY mvnw .
@@ -56,9 +55,6 @@ build-with-maven:
56
55
# See above comments on enabling for Gradle.
57
56
# Note that ONLY the Maven containerized build updates the README frontpage
58
57
# badge for coverage. This is to avoid multiple updating.
59
- #
60
- # ALSO NOTE: This seems to enable GitHub action to show coverage directly in
61
- # an action build run.
62
58
SAVE ARTIFACT --keep-ts target/site/jacoco/jacoco.csv AS LOCAL target/site/jacoco/jacoco.csv
63
59
64
60
run-with-maven :
0 commit comments