-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
85485a0
commit 8c4edef
Showing
3 changed files
with
46 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,42 +95,8 @@ jobs: | |
id: e2e-test-results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: us-swap-test-results | ||
name: us-swap-test-results-${{ github.run_id }} | ||
path: packages/web/playwright-report | ||
- name: Send Slack alert if test fails | ||
id: slack | ||
if: failure() | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "header", | ||
"text": { | ||
"type": "plain_text", | ||
"text": "🚨 Synthetic Geo Swap 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 | ||
|
||
fe-swap-eu-tests: | ||
timeout-minutes: 15 | ||
|
@@ -171,7 +137,7 @@ jobs: | |
id: e2e-test-results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: eu-swap-test-results | ||
name: eu-swap-test-results-${{ github.run_id }} | ||
path: packages/web/playwright-report | ||
|
||
fe-swap-sg-tests: | ||
|
@@ -213,14 +179,52 @@ jobs: | |
id: e2e-test-results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: sg-swap-test-results | ||
name: sg-swap-test-results-${{ github.run_id }} | ||
path: packages/web/playwright-report | ||
|
||
fe-bot-alert: | ||
runs-on: ubuntu-latest | ||
needs: [fe-swap-us-tests, fe-swap-eu-tests, fe-swap-sg-tests] | ||
if: failure() | ||
steps: | ||
- name: Send Slack alert if test fails | ||
id: slack | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "header", | ||
"text": { | ||
"type": "plain_text", | ||
"text": "🚨 Synthetic Prod Swap Monitoring Tests Failure Alert 🚨" | ||
} | ||
}, | ||
{ | ||
"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 | ||
if: always() | ||
needs: | ||
[fe-quote-tests, fe-swap-us-tests, fe-swap-sg-tests, fe-swap-eu-tests] | ||
[ | ||
fe-quote-tests, | ||
fe-swap-us-tests, | ||
fe-swap-sg-tests, | ||
fe-swap-eu-tests, | ||
fe-bot-alert, | ||
] | ||
steps: | ||
- name: Delete Previous deployments | ||
uses: actions/github-script@v7 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters