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/18 11:32:09 UTC

[camel] 04/21: (chores) ci: add support for generating checkstyle summaries

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

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

commit 401ad85dac6b548f5f0b08a55fa4ffa7bca3ae9e
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Oct 13 10:38:53 2022 +0200

    (chores) ci: add support for generating checkstyle summaries
---
 .github/workflows/main-checkstyle-build.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/.github/workflows/main-checkstyle-build.yml b/.github/workflows/main-checkstyle-build.yml
index aa360a6f40e..8a4f7dbe195 100644
--- a/.github/workflows/main-checkstyle-build.yml
+++ b/.github/workflows/main-checkstyle-build.yml
@@ -51,3 +51,13 @@ jobs:
         with:
           name: checkstyle.log
           path: checkstyle.log
+      - name: Generate failure checkstyle summary
+        if: failure()
+        run: |
+          echo ":x: Checkstyle failed" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+      - name: Generate successful checkstyle summary
+        if: failure()
+        run: |
+          echo ":white_check_mark: Checkstyle passed" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY