Skip to content

Commit

Permalink
add matrix notification when integration tests fails (#894)
Browse files Browse the repository at this point in the history
* tests: add matrix notif on failure

* Update .github/workflows/nightly.yml

* add message for integration tests success

* Update .github/workflows/nightly.yml
  • Loading branch information
niklasad1 authored Sep 11, 2024
1 parent 3694e95 commit 3da5bbb
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
jobs:
nightly-test:
runs-on: ubuntu-latest
strategy:
matrix:
channel:
- name: 'Staking Miner Dev'
room: '!tXyUlsDAYvDfRKbzKx:parity.io'
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -41,3 +46,22 @@ jobs:
# create a new one if we only find closed versions):
search_existing: open

- name: Notify daily integration tests failure
if: failure()
uses: s3krit/matrix-message-action@70ad3fb812ee0e45ff8999d6af11cafad11a6ecf # v0.0.3
with:
room_id: ${{ matrix.channel.room }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
server: m.parity.io
message: |
@room Daily integration tests failed https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks/${{ github.run_id }}
- name: Notify daily integration tests success
if: success()
uses: s3krit/matrix-message-action@70ad3fb812ee0e45ff8999d6af11cafad11a6ecf # v0.0.3
with:
room_id: ${{ matrix.channel.room }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
server: m.parity.io
message: |
Daily integration tests passed (temporary message to test the notification, this will be omitted in the future)

0 comments on commit 3da5bbb

Please sign in to comment.