Skip to content

Commit c466596

Browse files
[IN-1154] Add slack notification for failing tests (#16)
1 parent 2898bb4 commit c466596

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/run-tests.yml

+11
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,14 @@ jobs:
2424
CLARIFAI_GRPC_BASE: ${{ secrets.CLARIFAI_GRPC_BASE }}
2525
CLARIFAI_API_KEY: ${{ secrets.CLARIFAI_API_KEY }}
2626
run: swift test -v
27+
- name: Slack Notify
28+
if: ${{ failure() }}
29+
uses: rtCamp/action-slack-notify@v2
30+
env:
31+
SLACK_ICON: "https://raw.githubusercontent.com/github/explore/2c7e603b797535e5ad8b4beb575ab3b7354666e1/topics/actions/actions.png"
32+
SLACK_USERNAME: "GitHub Alerts"
33+
SLACK_CHANNEL: "#grpc-client-repo-alerts"
34+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
35+
SLACK_COLOR: ${{ job.status }}
36+
SLACK_MESSAGE: "Test failure"
37+
SLACK_FOOTER: "Clarifai Swift GRPC Repo"

0 commit comments

Comments
 (0)