diff --git a/.github/workflows/monitoring-geo-e2e-tests.yml b/.github/workflows/monitoring-geo-e2e-tests.yml index 29ec5d1dec..a6d78c1ad4 100644 --- a/.github/workflows/monitoring-geo-e2e-tests.yml +++ b/.github/workflows/monitoring-geo-e2e-tests.yml @@ -106,20 +106,19 @@ jobs: with: payload: | { - "text": "🚨 Synthetic Geo Monitoring Tests Failure Alert 🚨", "blocks": [ { "type": "header", "text": { "type": "plain_text", - "text": "Synthetic Geo Monitoring Tests Failure" + "text": "🚨 Synthetic Geo Swap Monitoring Tests Failure Alert 🚨" } }, { "type": "section", "text": { "type": "mrkdwn", - "text": "*Environment:* production\n*App URL:* https://app.osmosis.zone" + "text": "*Production App URL:* https://app.osmosis.zone" } }, { @@ -262,6 +261,40 @@ jobs: with: name: eu-trade-test-results path: packages/web/playwright-report + - name: Send Slack alert if test fails + id: slack + if: failure() + uses: slackapi/slack-github-action@v1.26.0 + with: + payload: | + { + "blocks": [ + { + "type": "header", + "text": { + "type": "plain_text", + "text": "🚨 Synthetic EU Trade Monitoring Tests Failure Alert 🚨" + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Production App URL:* https://app.osmosis.zone" + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Click here to view the run: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|GitHub Actions Run>" + } + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SERVER_E2E_TESTS_SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK delete-deployments: runs-on: ubuntu-latest