From e8024d86d46af7d7a647f6769d77bd9108273f01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Bl=C3=A4cker?= Date: Tue, 3 Sep 2024 16:28:16 +0700 Subject: [PATCH] test --- .github/workflows/enforceTestCoverage.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: