Skip to content

Commit

Permalink
Commit coverage badges
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Jul 18, 2024
1 parent 5073875 commit 592e3ba
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,17 @@ jobs:
with:
generate-branches-badge: true
jacoco-csv-file: "**/jacoco.csv"
- name: Codecov
uses: codecov/[email protected]
- name: Log coverage percentage
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
- name: Commit the badge (if it changed)
run: |
if [[ `git status --porcelain` ]]; then
git config --global user.name 'Okke Harsta'
git config --global user.email '[email protected]'
git add -A
git commit -m "Autogenerated JaCoCo coverage badge"
git push
fi

0 comments on commit 592e3ba

Please sign in to comment.