Skip to content

Commit 5ef578a

Browse files
authored
ci: notify Slack on test failures (#449)
* ci: notify Slack on test failures * trigger * remove trigger
1 parent b6bed7f commit 5ef578a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,15 @@ jobs:
143143
- name: Run
144144
if: success() && steps.aws-auth.outcome == 'success'
145145
run: hatch run test:integration-retry
146+
147+
notify-slack-on-failure:
148+
if: failure() && github.ref_name == 'main'
149+
needs:
150+
- linting
151+
- unit-tests
152+
- integration-tests
153+
runs-on: ubuntu-slim
154+
steps:
155+
- uses: deepset-ai/notify-slack-action@v1
156+
with:
157+
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }}

0 commit comments

Comments
 (0)