Skip to content

Commit f0dda4d

Browse files
committed
feat(59649): fix
1 parent edcb4c6 commit f0dda4d

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/ci-cd-kotlin.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ on:
2727
required: false
2828
type: boolean
2929
default: false
30+
codeCoverageExcludes:
31+
required: false
32+
type: string
33+
default: ""
3034

3135
env:
3236
IMAGE_NAME_MIXED_CASE: "${{ github.repository }}"
37+
JACOCO_VERSION: "0.8.14"
3338
JACOCO_REPORTS: "**/build/reports/jacoco/test/jacocoTestReport.xml,**/build/reports/jacoco/jacoco.xml"
3439

3540
jobs:
@@ -57,10 +62,15 @@ jobs:
5762

5863
- name: Run tests
5964
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6066
CODE_COVERAGE_ENABLED: ${{ inputs.codeCoverageEnabled }}
67+
JACOCO_VERSION: ${{ env.JACOCO_VERSION }}
68+
JACOCO_EXCLUDES: ${{ inputs.codeCoverageExcludes }}
6169
run: |
6270
if [[ "${CODE_COVERAGE_ENABLED}" == "true" ]]; then
63-
./gradlew test jacocoTestReport
71+
./gradlew test jacocoTestReport \
72+
-PjacocoVersion="${{ JACOCO_VERSION }}" \
73+
${JACOCO_EXCLUDES:+-PjacocoExcludes=${JACOCO_EXCLUDES}}
6474
else
6575
./gradlew test
6676
fi

0 commit comments

Comments
 (0)