@@ -70,49 +70,52 @@ jobs:
70
70
- name : Execute run script
71
71
run : earthly --secret OWASP_NVD_API_KEY +run-with-maven
72
72
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
80
74
81
75
- name : Save Javadoc HTML for main
82
76
uses : actions/upload-artifact@v4
83
77
with :
84
78
name : javadoc-html-main
85
- path : target/apidocs
79
+ if-no-files-found : error
80
+ path : target/apidocs/
86
81
87
82
- name : Save Javadoc HTML Jar for main
88
83
uses : actions/upload-artifact@v4
89
84
with :
90
85
name : javadoc-unittests-main
86
+ if-no-files-found : error
91
87
path : target/modern-java-practices-0-SNAPSHOT-javadoc.jar
92
88
93
89
- name : Save Javadoc HTML for unit tests
94
90
uses : actions/upload-artifact@v4
95
91
with :
96
92
name : javadoc-html-unittests
97
- path : target/testapidocs
93
+ if-no-files-found : error
94
+ path : target/testapidocs/
98
95
99
96
- name : Save Javadoc HTML Jar for unit tests
100
97
uses : actions/upload-artifact@v4
101
98
with :
102
99
name : javadoc-jar-unittests
100
+ if-no-files-found : error
103
101
path : target/modern-java-practices-0-SNAPSHOT-test-javadoc.jar
104
102
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
107
108
with :
108
- name : coverage-report
109
- path : target/site/jacoco
109
+ badges-directory : images
110
+ generate-branches-badge : false
111
+ generate-summary : false
110
112
111
113
- name : Save coverage report
112
114
uses : actions/upload-artifact@v4
113
115
with :
114
116
name : coverage-report
115
- path : target/site/jacoco
117
+ if-no-files-found : error
118
+ path : target/site/jacoco/
116
119
117
120
# Can this colide with the Gradle build when both finish about the same
118
121
# time?
0 commit comments