File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 required : false
2828 type : boolean
2929 default : false
30+ codeCoverageExcludes :
31+ required : false
32+ type : string
33+ default : " "
3034
3135env :
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
3540jobs :
@@ -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
You can’t perform that action at this time.
0 commit comments