Skip to content

Commit a496f99

Browse files
committed
Update workflow
1 parent 1990d53 commit a496f99

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/maven.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,22 @@ jobs:
2929
cache: maven
3030
- name: Build with Maven
3131
run: mvn -B package --file pom.xml
32-
- name: Generate JaCoCo Badge
32+
- name: Generate JaCoCo badge
33+
id: jacoco
3334
uses: cicirello/jacoco-badge-generator@v2
3435
with:
36+
badges-directory: badges
3537
generate-branches-badge: true
38+
generate-summary: true
39+
- name: Log coverage percentages to workflow output
40+
run: |
41+
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
42+
echo "branches = ${{ steps.jacoco.outputs.branches }}"
43+
- name: Upload JaCoCo coverage report as a workflow artifact
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: jacoco-report
47+
path: target/site/jacoco/
3648
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
3749
- name: Update dependency graph
3850
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6

0 commit comments

Comments
 (0)