Skip to content

Commit

Permalink
fix: try to fix github action
Browse files Browse the repository at this point in the history
Signed-off-by: pierresomny <[email protected]>
  • Loading branch information
pierresomny committed Feb 7, 2024
1 parent 28498ff commit 9886396
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9886396

Please sign in to comment.