Skip to content

Commit 7f150bc

Browse files
authored
Merge pull request #29 from securenative/SN-1556-align-sdk
Add testing action
2 parents 34a5149 + b1786f4 commit 7f150bc

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/test.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,26 @@ jobs:
2323
pip install pytest responses requests-mock
2424
- name: Test with pytest
2525
run: |
26-
pytest --vv
26+
pytest -vv
27+
28+
- name: Notify slack success
29+
if: success()
30+
env:
31+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
32+
uses: voxmedia/[email protected]
33+
with:
34+
message_id: ${{ steps.slack.outputs.message_id }}
35+
channel: github-actions
36+
status: SUCCESS
37+
color: good
38+
39+
- name: Notify slack fail
40+
if: failure()
41+
env:
42+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
43+
uses: voxmedia/[email protected]
44+
with:
45+
message_id: ${{ steps.slack.outputs.message_id }}
46+
channel: github-actions
47+
status: FAILED
48+
color: danger

0 commit comments

Comments
 (0)