-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: pierresomny <[email protected]>
- Loading branch information
1 parent
28498ff
commit 9886396
Showing
1 changed file
with
9 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,24 +13,18 @@ jobs: | |
- name: Generate JaCoCo Badge | ||
id: jacoco | ||
uses: cicirello/jacoco-badge-generator@v2 | ||
with: | ||
generate-branches-badge: true | ||
|
||
- name: Log coverage percentage | ||
run: | | ||
echo "coverage = ${{ steps.jacoco.outputs.coverage }}" | ||
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}" | ||
- name: Commit and push the badge (if it changed) | ||
uses: EndBug/[email protected] | ||
with: | ||
message: 'commit badge' | ||
add: '*.svg' | ||
author_email: "[email protected]" | ||
author_name: "pierresomny" | ||
|
||
- name: Upload JaCoCo coverage report | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: jacoco-report | ||
path: target/site/jacoco/ | ||
- name: Commit the badge (if it changed) | ||
run: | | ||
if [[ `git status --porcelain` ]]; then | ||
git config --global user.name 'pierresomny' | ||
git config --global user.email '[email protected]' | ||
git add -A | ||
git commit -m "Autogenerated JaCoCo coverage badge" | ||
git push | ||
fi |