Skip to content

Commit c0b5073

Browse files
committed
Send email notification when test failed
1 parent f4e7515 commit c0b5073

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/test.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ jobs:
1717
cache: true
1818
- name: Install dependencies
1919
run: pdm install
20-
2120
- name: Run tests
2221
run: pdm run test
22+
- name: Send failure email
23+
if: failure()
24+
uses: dawidd6/action-send-mail@v3
25+
with:
26+
subject: Test Failure in ${{ github.repository }}
27+
body: The test for ${{ github.repository }} failed.
28+
29+
from: GitHub
30+
server_address: smtp.gmail.com

0 commit comments

Comments
 (0)