From 4621d04a2485387edb68da35b0808c300d5b0a89 Mon Sep 17 00:00:00 2001 From: Baran Karaaslan Date: Thu, 22 Aug 2024 23:31:26 +0300 Subject: [PATCH] post slack message on integration tests ci failure --- .github/workflows/test.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8992c88035b..e908c99f8c3 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -913,4 +913,8 @@ jobs: wasmer login ${{ secrets.WAPM_PROD_TOKEN }} &&\ wasmer config set registry.url https://registry.wasmer.wtf/graphql &&\ wasmer login ${{ secrets.WAPM_DEV_TOKEN }} &&\ - cargo test --no-fail-fast" \ No newline at end of file + cargo test --no-fail-fast" + - name: notify failure in slack + if: failure() + run: | + curl -X POST -H 'Content-type: application/json' --data '{"text":"Integration tests failed ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}' ${{ secrets.INTEGRATION_TEST_SLACK_WEBHOOK }}