chore: Add slack notifications when e2e or bats tests fail (#2946)
This commit is contained in:
1 parent
62e7335c54
commit
9dcf605251
2 files changed
+37
No files matched your search
@@ -499,3 +499,14 @@ jobs:
|
||||
if: success() || failure()
|
||||
run: |
|
||||
make -C internal/tests/cli test-vault-down
|
||||
- name: Send Slack message
|
||||
if: ${{ failure() }}
|
||||
uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 # v1.23.0
|
||||
with:
|
||||
channel-id: ${{ secrets.SLACK_BOUNDARY_TEST_BOT_CHANNEL_ID }}
|
||||
payload: |
|
||||
{
|
||||
"text": ":x: bats tests failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Branch:* ${{ github.event.ref }}\n*SHA:* <${{ github.event.head_commit.url }}|${{ github.event.after }}>"
|
||||
}
|
||||
env:
|
||||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOUNDARY_TEST_BOT_TOKEN }}
|
||||
Reference in new issue
Block a user