Skip to content

Commit 2da0cc6

Browse files
Add JaCoCo bot to github actions
* Update maven-verify.yml * Update maven-verify.yml * Update maven-verify.yml
1 parent 43f469a commit 2da0cc6

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/maven-verify.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,21 @@ jobs:
3030
cache: maven
3131
- name: Build with Maven
3232
run: mvn -B verify --file memex/pom.xml
33+
34+
- name: Archive Jacoco reports
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: jacoco-reports
38+
path: ${{ github.workspace }}/memex/target/site/jacoco
39+
40+
- name: JaCoCo Report
41+
uses: Madrapps/jacoco-report@v1.7.2
42+
with:
43+
# Comma separated paths of the generated jacoco xml files (supports wildcard glob pattern)
44+
paths: |
45+
${{ github.workspace }}/memex/target/site/jacoco/jacoco.xml
46+
# Github personal token to add comments to Pull Request
47+
token: ${{ secrets.GITHUB_TOKEN }}
48+
title: '# Java Code Coverage Report'
49+
50+

0 commit comments

Comments
 (0)