Skip to content

Commit 2745d1f

Browse files
ci: setup slack messages for integration test (#27871)
Setup the slack messages for failed integration tests on releasable branchces
1 parent 5dd614a commit 2745d1f

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,17 @@ jobs:
104104
run: yarn install --frozen-lockfile
105105
- name: Run integration tests
106106
run: yarn integration-tests
107-
# TODO: Set up slack notifications
108-
# - name: Running size integration tests (failures are reported in Slack only).
109-
# run: |
110-
# If the size integration tests fail, report the failure to a dedicated #components-ci-size-tracking Slack channel.
111-
# yarn integration-tests:size-test || yarn ci-notify-slack-failure components-ci-size-tracking
107+
- name: Running size integration tests
108+
run: yarn integration-tests:size-test
109+
continue-on-error: true
110+
- name: Notify about failed integration size-test
111+
if: ${{ failure() && github.event_name == 'push'}}
112+
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v=v1.24.0
113+
with:
114+
channel-id: 'C015EBF2XB6'
115+
slack-message: 'Integration testing job failed for ${{ github.base_ref }} branch failed on build ${{ github.event.after }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
116+
env:
117+
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
112118

113119
linker_aot_tests:
114120
runs-on: ubuntu-latest-4core

0 commit comments

Comments
 (0)