Skip to content

Commit 9d90246

Browse files
committed
Fix build
1 parent 8eee564 commit 9d90246

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

.github/workflows/ci-earthly-maven.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,49 +70,52 @@ jobs:
7070
- name: Execute run script
7171
run: earthly --secret OWASP_NVD_API_KEY +run-with-maven
7272

73-
- name: Generate coverage badge
74-
# if: ${{ github.ref == 'refs/head/master' }}
75-
uses: cicirello/jacoco-badge-generator@v2
76-
with:
77-
badges-directory: images
78-
generate-branches-badge: false
79-
generate-summary: false
73+
# Javadoc HTML and jars
8074

8175
- name: Save Javadoc HTML for main
8276
uses: actions/upload-artifact@v4
8377
with:
8478
name: javadoc-html-main
85-
path: target/apidocs
79+
if-no-files-found: error
80+
path: target/apidocs/
8681

8782
- name: Save Javadoc HTML Jar for main
8883
uses: actions/upload-artifact@v4
8984
with:
9085
name: javadoc-unittests-main
86+
if-no-files-found: error
9187
path: target/modern-java-practices-0-SNAPSHOT-javadoc.jar
9288

9389
- name: Save Javadoc HTML for unit tests
9490
uses: actions/upload-artifact@v4
9591
with:
9692
name: javadoc-html-unittests
97-
path: target/testapidocs
93+
if-no-files-found: error
94+
path: target/testapidocs/
9895

9996
- name: Save Javadoc HTML Jar for unit tests
10097
uses: actions/upload-artifact@v4
10198
with:
10299
name: javadoc-jar-unittests
100+
if-no-files-found: error
103101
path: target/modern-java-practices-0-SNAPSHOT-test-javadoc.jar
104102

105-
- name: Save coverage report
106-
uses: actions/upload-artifact@v4
103+
# Coverage badge and report artifact
104+
105+
- name: Generate coverage badge
106+
# if: ${{ github.ref == 'refs/head/master' }}
107+
uses: cicirello/jacoco-badge-generator@v2
107108
with:
108-
name: coverage-report
109-
path: target/site/jacoco
109+
badges-directory: images
110+
generate-branches-badge: false
111+
generate-summary: false
110112

111113
- name: Save coverage report
112114
uses: actions/upload-artifact@v4
113115
with:
114116
name: coverage-report
115-
path: target/site/jacoco
117+
if-no-files-found: error
118+
path: target/site/jacoco/
116119

117120
# Can this colide with the Gradle build when both finish about the same
118121
# time?

0 commit comments

Comments
 (0)