Skip to content

Commit

Permalink
Added alert
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-dubinin committed Aug 15, 2024
1 parent d589456 commit 6b950b6
Showing 1 changed file with 36 additions and 3 deletions.
39 changes: 36 additions & 3 deletions .github/workflows/monitoring-geo-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6b950b6

Please sign in to comment.