Skip to content

Commit

Permalink
[IN-1154] Add slack notification for failing tests (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
travertischio authored Sep 18, 2023
1 parent bb7b36e commit 19ce677
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,14 @@ jobs:
CLARIFAI_GRPC_BASE: ${{ secrets.CLARIFAI_GRPC_BASE }}
CLARIFAI_API_KEY: ${{ secrets.CLARIFAI_API_KEY }}
run: go test -v .

- name: Slack Notify
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_ICON: "https://raw.githubusercontent.com/github/explore/2c7e603b797535e5ad8b4beb575ab3b7354666e1/topics/actions/actions.png"
SLACK_USERNAME: "GitHub Alerts"
SLACK_CHANNEL: "#grpc-client-repo-alerts"
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_MESSAGE: "Test failure"
SLACK_FOOTER: "Clarifai Go GRPC Repo"

0 comments on commit 19ce677

Please sign in to comment.