From fc11728061493a07f99ea028bef69e519eaf8e52 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Wed, 31 Jul 2024 08:21:35 -0500 Subject: [PATCH] Add Slack alerts for CI test failure --- .gitea/workflows/test-fixturenet-eth.yml | 17 +++++++++++++++++ .gitea/workflows/test-fixturenet-plugeth.yml | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/.gitea/workflows/test-fixturenet-eth.yml b/.gitea/workflows/test-fixturenet-eth.yml index 195a683..89f0acc 100644 --- a/.gitea/workflows/test-fixturenet-eth.yml +++ b/.gitea/workflows/test-fixturenet-eth.yml @@ -33,3 +33,20 @@ jobs: run: | PATH=$PATH:~/bin ./tests/fixturenet-eth-stack/run-test.sh + + - name: Notify Vulcanize Slack on CI failure + if: ${{ always() && github.ref_name == 'main' }} + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure + if: ${{ always() && github.ref_name == 'main' }} + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }} diff --git a/.gitea/workflows/test-fixturenet-plugeth.yml b/.gitea/workflows/test-fixturenet-plugeth.yml index 462b8e8..59e0472 100644 --- a/.gitea/workflows/test-fixturenet-plugeth.yml +++ b/.gitea/workflows/test-fixturenet-plugeth.yml @@ -33,3 +33,20 @@ jobs: run: | PATH=$PATH:~/bin ./tests/fixturenet-plugeth-stack/run-test.sh + + - name: Notify Vulcanize Slack on CI failure + if: ${{ always() && github.ref_name == 'main' }} + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure + if: ${{ always() && github.ref_name == 'main' }} + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }}