Skip to content

Commit 8c1c4ff

Browse files
authored
chore: added JaCoCo report (#1361)
* chore: added JaCoCo report * chore: added JaCoCo config
1 parent 6c1f59a commit 8c1c4ff

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ on:
2828
jobs:
2929
test:
3030
runs-on: ubuntu-latest
31-
31+
permissions:
32+
pull-requests: write
3233
steps:
3334
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3435
- name: Checkout Repo
@@ -44,4 +45,17 @@ jobs:
4445
distribution: 'temurin'
4546

4647
- name: Build modules
47-
run: ./gradlew build jacocoTestReport --stacktrace
48+
run: ./gradlew build jacocoTestDebugUnitTestReport --stacktrace
49+
50+
- name: Jacoco Report to PR
51+
id: jacoco
52+
uses: madrapps/[email protected]
53+
with:
54+
paths: |
55+
${{ github.workspace }}/library/build/jacoco/jacoco.xml
56+
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
57+
min-coverage-overall: 26
58+
min-coverage-changed-files: 60
59+
title: Code Coverage
60+
debug-mode: false
61+
update-comment: true

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ subprojects { project ->
7474

7575
// Code coverage
7676
jacoco {
77-
toolVersion = "0.8.4"
77+
toolVersion = "0.8.8"
7878
}
7979

8080
tasks.withType(Test).configureEach {

0 commit comments

Comments
 (0)