Skip to content

Commit

Permalink
feat: add test coverage reports back
Browse files Browse the repository at this point in the history
  • Loading branch information
ancavar committed Apr 26, 2023
1 parent 046234e commit 6b8eeeb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
- name: Build with Gradle
run: ./gradlew build

- name: JaCoCo Coverage Report
if: runner.os != 'Windows'
env:
report_path: trees/build/jacoco/report.csv
run: |
awk -F"," '{ instructions += $4 + $5; covered += $5; branches += $6 + $7; branches_covered +=$7 } END { print "Instructions covered:", covered"/"instructions, "--", 100*covered/instructions"%"; print "Branches covered:", branches_covered"/"branches, "--", 100*branches_covered/branches"%" }' $report_path
- uses: actions/upload-artifact@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
Expand Down

0 comments on commit 6b8eeeb

Please sign in to comment.