Skip to content

Commit 36f2f0a

Browse files
committed
For #457. How does GitHub show coverage report?
1 parent e09d014 commit 36f2f0a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Earthfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,9 @@ run-with-gradle:
1717
COPY run-with-gradle.sh .
1818
RUN ./run-with-gradle.sh
1919

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/
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/test/ AS LOCAL build/docs/javadoc/test/
20+
# For CI so that GitHub can copy artifacts
2621

22+
# Coverage reports
2723
# Test coverage and badge for Gradle:
2824
# You need to PICK ONE from Gradle or Maven for your build.
2925
# This project uses Maven (see below) to create the code coverage badge to
@@ -32,9 +28,12 @@ run-with-gradle:
3228
# Gradle.
3329
# After this enabling this, you still need to update the GitHub action steps
3430
# 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/
3532
SAVE ARTIFACT --save-ts build/reports/jacoco/test/jacocoTestReport.csv AS LOCAL build/reports/jacoco/test/jacocoTestReport.csv
36-
# Experiment if GitHub shows test coverage from these reports:
37-
SAVE ARTIFACT --keep-ts build/reports/jacoco/test/jacocoTestReport.csv 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/test/ AS LOCAL build/docs/javadoc/test/
3837

3938
build-with-maven:
4039
COPY mvnw .

0 commit comments

Comments
 (0)