diff --git a/.github/workflows/enforceTestCoverage.yml b/.github/workflows/enforceTestCoverage.yml index ac2526e73..098b7a5ea 100644 --- a/.github/workflows/enforceTestCoverage.yml +++ b/.github/workflows/enforceTestCoverage.yml @@ -113,7 +113,7 @@ jobs: RESULT_COVERAGE_REPORT="Test coverage ($LINE_COVERAGE_PERCENTAGE%) is above min threshold ($MIN_TEST_COVERAGE%). Check passed." else RESULT_COVERAGE_REPORT="Test coverage ($LINE_COVERAGE_PERCENTAGE%) is below min threshold ($MIN_TEST_COVERAGE%). Check failed." - echo $RESULT_COVERAGE_REPORT + echo -e "\033[32m$RESULT_COVERAGE_REPORT\033[0m" exit 1 fi @@ -129,6 +129,13 @@ jobs: echo "BRANCH_COVERAGE_REPORT=$BRANCH_COVERAGE_REPORT" >> $GITHUB_ENV echo "RESULT_COVERAGE_REPORT=$RESULT_COVERAGE_REPORT" >> $GITHUB_ENV + { + echo "LINE_COVERAGE_REPORT=$LINE_COVERAGE_REPORT" + echo "FUNCTION_COVERAGE_REPORT=$FUNCTION_COVERAGE_REPORT" + echo "BRANCH_COVERAGE_REPORT=$BRANCH_COVERAGE_REPORT" + echo "RESULT_COVERAGE_REPORT=$RESULT_COVERAGE_REPORT" + } >> "$GITHUB_ENV" + - name: Comment with Coverage Summary in PR uses: mshick/add-pr-comment@v2.8.2 with: