Skip to content

Commit 358b1fb

Browse files
committed
For #604. Test if direct-vs-container is an issue
1 parent 09d59e3 commit 358b1fb

File tree

2 files changed

+72
-72
lines changed

2 files changed

+72
-72
lines changed

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

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,75 @@ jobs:
4949

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

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

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -63,75 +63,3 @@ jobs:
6363

6464
- name: Execute run script
6565
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

Comments
 (0)