Skip to content

Commit

Permalink
adding ui test for the slack message
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-insolia-cko committed Nov 14, 2023
1 parent 25f1af8 commit 3f25352
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/slack-build-result.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ on:
description: unit test result
required: true
type: string
ui-test-result:
description: ui test result
required: true
type: string
jobs:
slack:
name: Slack Build Result for ${{ inputs.workflow }}
Expand All @@ -37,6 +41,8 @@ jobs:
KTLINT_RESULT: ${{ inputs.ktlint-result == 'failure' && ':x:' || ':white_check_mark:'}}
ASSEMBLE_RESULT: ${{ inputs.assemble-result == 'failure' && ':x:' || ':white_check_mark:'}}
UNIT_TEST_RESULT: ${{ inputs.unit-test-result == 'failure' && ':x:' || ':white_check_mark:'}}
UI_TEST_RESULT: ${{ inputs.ui-test-result == 'failure' && ':x:' || ':white_check_mark:'}}



with:
Expand Down Expand Up @@ -97,6 +103,13 @@ jobs:
"text": "${{ format('{0} {1} {2}', env.UNIT_TEST_RESULT, inputs.unit-test-result, 'Unit Test') }}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ format('{0} {1} {2}', env.UI_TEST_RESULT, inputs.ui-test-result, 'UI Test') }}"
}
},
{
"type": "context",
"elements": [
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/verification-flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,4 @@ jobs:
ktlint-result: ${{ needs.ktlint.result }}
assemble-result: ${{ needs.assemble.result }}
unit-test-result: ${{ needs.unit-test.result }}
ui-test-result: ${{ needs.ui-test.result }}

0 comments on commit 3f25352

Please sign in to comment.