Skip to content

Commit 9a13534

Browse files
committed
🔊 log percentage and upload coverage report
1 parent 40e418b commit 9a13534

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@ jobs:
2929
with:
3030
generate-branches-badge: true
3131
jacoco-csv-file: build/reports/jacoco/test/jacocoTestReport.csv
32-
#
33-
# - name: "Log coverage percentage"
34-
# run: |
35-
# echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
36-
# echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
37-
# - name: "Commit the JaCoCo badge (if it changed)"
38-
# run: |
39-
# if [[ `git status --porcelain` ]]; then
40-
# git config --global user.name 'Jacoco Coverage Update Action'
41-
# git config --global user.email '[email protected]'
42-
# git add -A
43-
# git commit -m "Autogenerated JaCoCo coverage badge"
44-
# git push
45-
# fi
46-
# - name: "Upload JaCoCo coverage report"
47-
# uses: actions/upload-artifact@v2
48-
# with:
49-
# name: jacoco-report
50-
# path: target/site/jacoco/
32+
33+
- name: "Log coverage percentage"
34+
run: |
35+
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
36+
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
37+
- name: "Commit the JaCoCo badge (if it changed)"
38+
run: |
39+
if [[ `git status --porcelain` ]]; then
40+
git config --global user.name 'Jacoco Coverage Update Action'
41+
git config --global user.email '[email protected]'
42+
git add -A
43+
git commit -m "Autogenerated JaCoCo coverage badge"
44+
git push
45+
fi
46+
- name: "Upload JaCoCo coverage report"
47+
uses: actions/upload-artifact@v2
48+
with:
49+
name: jacoco-report
50+
path: build/reports/jacoco/test/html/

0 commit comments

Comments
 (0)