You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2023/05/31 09:37:36 UTC

[camel] branch main updated: component-test - Improve message look-n-feel

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 0f85e0abd69 component-test - Improve message look-n-feel
0f85e0abd69 is described below

commit 0f85e0abd699ee607a466aebf69fe33c23c6ab41
Author: Nicolas Filotto <nf...@talend.com>
AuthorDate: Wed May 31 11:37:18 2023 +0200

    component-test - Improve message look-n-feel
---
 .github/actions/component-test/action.yaml | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/.github/actions/component-test/action.yaml b/.github/actions/component-test/action.yaml
index 8478f6b9b82..53a0d344126 100644
--- a/.github/actions/component-test/action.yaml
+++ b/.github/actions/component-test/action.yaml
@@ -47,15 +47,15 @@ runs:
       with:
         name: build.log
         path: build.log
-#    - name: maven test
-#      shell: bash
-#      run: ${{ github.action_path }}/component-test.sh ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd "${{ inputs.comment-body }}" false tests.log
-#    - name: archive logs
-#      uses: actions/upload-artifact@v3
-#      if: always()
-#      with:
-#        name: tests.log
-#        path: tests.log
+    - name: maven test
+      shell: bash
+      run: ${{ github.action_path }}/component-test.sh ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd "${{ inputs.comment-body }}" false tests.log
+    - name: archive logs
+      uses: actions/upload-artifact@v3
+      if: always()
+      with:
+        name: tests.log
+        path: tests.log
     - name: Success comment
       if: success()
       uses: actions/github-script@v6
@@ -68,6 +68,7 @@ runs:
                 issue_number: ${{ inputs.pr-id }},
                 comment_id: ${{ inputs.comment-id }},
                 body: `${{ inputs.comment-body }}
+
           **Result** :white_check_mark: The tests passed successfully`
           });
     - name: Failure comment
@@ -82,10 +83,13 @@ runs:
              run_id: ${{ inputs.run-id }}
           });
           var message = `${{ inputs.comment-body }}
+
           **Result** :x: The tests failed please check the logs below:
+
           `
           for (const artifact in artifacts.data.artifacts) {
-            message += `* [*${artifact.name}*](${artifact.url})`
+            message += `* [*${artifact.name}*](${artifact.url})
+          `
           }
           await github.rest.issues.updateComment({
                 owner: context.repo.owner,