Skip to content

Commit

Permalink
Update e2e-test-workflow-call-nightly.yml (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
anhductn2001 authored Jan 10, 2025
1 parent 6d08c0a commit 20d56ce
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/e2e-test-workflow-call-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,26 @@ jobs:
ROLLAPP_WASM_CI: ${{ inputs.rollapp_wasm_ci }}
RELAYER_CI: ${{ inputs.relayer_ci }}

- name: Capture Failed Tests
id: capture-success
if: success()
run: |
echo "FAILED_TESTS=$(echo 'All tests passed')" >> $GITHUB_ENV
echo "RUN_URL=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
- name: Capture Failed Tests
id: capture-failures
if: failure()
run: |
echo "FAILED_TESTS=$(cat e2e-failures.log || echo 'All tests passed')" >> $GITHUB_ENV
echo "FAILED_TESTS=$(cat e2e-failures.log)" >> $GITHUB_ENV
echo "RUN_URL=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
- name: Send Slack Notification
uses: slackapi/[email protected]
with:
channel-id: C088KMGDNHW
slack-token: ${{ secrets.SLACK_E2E_TEST_TOKEN }}
custom-payload: |
token: ${{ secrets.SLACK_E2E_TEST_TOKEN }}
payload: |
{
"text": "E2E Test Report for <$RUN_URL|GitHub Actions Run>",
"blocks": [
Expand Down

0 comments on commit 20d56ce

Please sign in to comment.