|
63 | 63 |
|
64 | 64 | - name: Execute run script
|
65 | 65 | run: earthly --secret OWASP_NVD_API_KEY +run-with-maven
|
66 |
| - |
67 |
| -# Javadoc HTML and jars |
68 |
| - |
69 |
| - - name: Save Javadoc HTML for main |
70 |
| - uses: actions/upload-artifact@v4 |
71 |
| - with: |
72 |
| - name: javadoc-html-main |
73 |
| - if-no-files-found: error |
74 |
| - path: target/apidocs/ |
75 |
| - |
76 |
| - - name: Save Javadoc HTML Jar for main |
77 |
| - uses: actions/upload-artifact@v4 |
78 |
| - with: |
79 |
| - name: javadoc-unittests-main |
80 |
| - if-no-files-found: error |
81 |
| - path: target/modern-java-practices-0-SNAPSHOT-javadoc.jar |
82 |
| - |
83 |
| - - name: Save Javadoc HTML for unit tests |
84 |
| - uses: actions/upload-artifact@v4 |
85 |
| - with: |
86 |
| - name: javadoc-html-unittests |
87 |
| - if-no-files-found: error |
88 |
| - path: target/testapidocs/ |
89 |
| - |
90 |
| - - name: Save Javadoc HTML Jar for unit tests |
91 |
| - uses: actions/upload-artifact@v4 |
92 |
| - with: |
93 |
| - name: javadoc-jar-unittests |
94 |
| - if-no-files-found: error |
95 |
| - path: target/modern-java-practices-0-SNAPSHOT-test-javadoc.jar |
96 |
| - |
97 |
| -# Coverage badge and report artifact |
98 |
| - |
99 |
| - - name: Generate coverage badge |
100 |
| - # if: ${{ github.ref == 'refs/head/master' }} |
101 |
| - uses: cicirello/jacoco-badge-generator@v2 |
102 |
| - with: |
103 |
| - badges-directory: images |
104 |
| - generate-branches-badge: false |
105 |
| - generate-summary: false |
106 |
| - |
107 |
| - - name: Save coverage report |
108 |
| - uses: actions/upload-artifact@v4 |
109 |
| - with: |
110 |
| - name: coverage-report |
111 |
| - if-no-files-found: error |
112 |
| - path: target/site/jacoco/ |
113 |
| - |
114 |
| - # Can this colide with the Gradle build when both finish about the same |
115 |
| - # time? |
116 |
| - - name: Add coverage to repo |
117 |
| - # if: ${{ github.ref == 'refs/head/master' }} |
118 |
| - run: | |
119 |
| - cd images |
120 |
| - if [[ ! -z "$(git status --porcelain *.svg)" ]]; then |
121 |
| - git config --global user.name 'github-actions' |
122 |
| - git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' |
123 |
| - git add *.svg |
124 |
| - git commit -m 'Autogenerated coverage badge' |
125 |
| - git push || echo "$0: Another build won for coverage badge" >&2 |
126 |
| - fi |
127 |
| - - name: Add coverage to repo |
128 |
| - # if: ${{ github.ref == 'refs/head/master' }} |
129 |
| - run: | |
130 |
| - cd images |
131 |
| - if [[ ! -z "$(git status --porcelain *.svg)" ]]; then |
132 |
| - git config --global user.name 'github-actions' |
133 |
| - git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' |
134 |
| - git add *.svg |
135 |
| - git commit -m 'Autogenerated coverage badge' |
136 |
| - git push || echo "$0: Another build won for coverage badge" >&2 |
137 |
| - fi |
0 commit comments