You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/10/13 08:32:14 UTC

[camel] 02/02: (chores) ci: add support for generating tests summaries

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6205c04518dbb95dbfe3957a9b03689639b8fef4
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Oct 13 10:31:39 2022 +0200

    (chores) ci: add support for generating tests summaries
---
 .github/actions/quick-test/quick-test.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.github/actions/quick-test/quick-test.sh b/.github/actions/quick-test/quick-test.sh
index b8223ad8478..e93aacb1f1b 100755
--- a/.github/actions/quick-test/quick-test.sh
+++ b/.github/actions/quick-test/quick-test.sh
@@ -39,6 +39,7 @@ function notifySuccess() {
   local current=$3
 
   echo "${component} test completed successfully: ${current} verified / ${failures} failed"
+  echo "| ${component} | :white_check_mark: pass" >> $GITHUB_STEP_SUMMARY
 }
 
 function notifyError() {
@@ -47,6 +48,7 @@ function notifyError() {
   local current=$3
 
   echo "Failed ${component} test: ${current} verified / ${failures} failed"
+  echo "| ${component} | :x: fail" >> $GITHUB_STEP_SUMMARY
 }
 
 function runTest() {
@@ -60,6 +62,9 @@ function runTest() {
   echo ""
 
   echo "Logging test to ${logDir}/${component/\//-}.log"
+  echo "| Component | Result |" >> $GITHUB_STEP_SUMMARY
+  echo "| --- | --- |" >> $GITHUB_STEP_SUMMARY
+
   mvn -Psourcecheck ${MVN_OPTS} verify 2>&1 >> "${logDir}/${component/\//-}.log"
   if [[ $? -ne 0 ]]; then
     ((failures++))