From 3f25352f45fd848cfd1eda202da90e183a4f14bb Mon Sep 17 00:00:00 2001 From: Fabio Insolia Date: Tue, 14 Nov 2023 09:42:11 +0000 Subject: [PATCH] adding ui test for the slack message --- .github/workflows/slack-build-result.yml | 13 +++++++++++++ .github/workflows/verification-flow.yml | 1 + 2 files changed, 14 insertions(+) diff --git a/.github/workflows/slack-build-result.yml b/.github/workflows/slack-build-result.yml index 92c16274..25bdb383 100644 --- a/.github/workflows/slack-build-result.yml +++ b/.github/workflows/slack-build-result.yml @@ -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 }} @@ -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: @@ -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": [ diff --git a/.github/workflows/verification-flow.yml b/.github/workflows/verification-flow.yml index ef48d84d..778c2aaf 100644 --- a/.github/workflows/verification-flow.yml +++ b/.github/workflows/verification-flow.yml @@ -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 }}