Skip to content

Commit

Permalink
jacoco badges
Browse files Browse the repository at this point in the history
  • Loading branch information
patkub committed Nov 4, 2024
1 parent 898ef5a commit 374fd08
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,20 @@ jobs:
- name: Build with Gradle
run: ./gradlew build
- name: Unit Test with Gradle
run: ./gradlew test
run: ./gradlew test
- name: Generate JaCoCo badge
id: jacoco
uses: cicirello/jacoco-badge-generator@v2
with:
badges-directory: badges
generate-branches-badge: true
generate-summary: true
- name: Log coverage percentages to workflow output
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
echo "branches = ${{ steps.jacoco.outputs.branches }}"
- name: Upload JaCoCo coverage report as a workflow artifact
uses: actions/upload-artifact@v4
with:
name: jacoco-report
path: target/site/jacoco/

0 comments on commit 374fd08

Please sign in to comment.