Skip to content

Commit

Permalink
chore: job for failure and job for success
Browse files Browse the repository at this point in the history
  • Loading branch information
CristiCanizales committed Oct 24, 2023
1 parent e2175ce commit 63e096c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 9 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/apexE2E.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,26 @@ jobs:
automationBranch: ${{ inputs.automationBranch }}
testToRun: 'trailApexReplayDebugger.e2e.ts'

slack_notification:
if: ${{ always() }}
slack_success_notification:
if: ${{ success() }}
needs: [apexLSP, apexReplayDebugger, debugApexTests, runApexTests, trailApexReplayDebugger]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'Apex E2E Tests'
summary: 'Apex LSP: ${{ needs.apexLSP.result }}, Apex Replay Debugger: ${{ needs.apexReplayDebugger.result }}, Debug Apex Tests: ${{ needs.debugApexTests.result }}, Run Apex Tests: ${{ needs.runApexTests.result }}, Trail Apex Replay Debugger: ${{ needs.trailApexReplayDebugger.result }}'
result: ${{ github.event.workflow.result }}
result: 'Success'
workflow: 'actions/runs/${{ github.run_id}}'
type: 'e2e'

slack_failure_notification:
if: ${{ failure() }}
needs: [apexLSP, apexReplayDebugger, debugApexTests, runApexTests, trailApexReplayDebugger]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'Apex E2E Tests'
summary: 'Apex LSP: ${{ needs.apexLSP.result }}, Apex Replay Debugger: ${{ needs.apexReplayDebugger.result }}, Debug Apex Tests: ${{ needs.debugApexTests.result }}, Run Apex Tests: ${{ needs.runApexTests.result }}, Trail Apex Replay Debugger: ${{ needs.trailApexReplayDebugger.result }}'
result: 'Failure'
workflow: 'actions/runs/${{ github.run_id}}'
type: 'e2e'
18 changes: 15 additions & 3 deletions .github/workflows/coreE2E.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,26 @@ jobs:
automationBranch: ${{ inputs.automationBranch }}
testToRun: 'templates.e2e.ts'

slack_notification:
if: ${{ always() }}
slack_success_notification:
if: ${{ success() }}
needs: [anInitialSuite, authentication, deployAndRetrieve, manifestBuilder, pushAndPull, sObjectsDefinitions, templates]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'Core E2E Tests'
summary: 'An Initial Suite: ${{ needs.anInitialSuite.result }}, Authentication: ${{ needs.authentication.result }}, Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}, Manifest Builder: ${{ needs.manifestBuilder.result }}, Push and Pull: ${{ needs.pushAndPull.result }}, SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}, Templates: ${{ needs.templates.result }}'
result: ${{ github.event.workflow.result }}
result: 'Success'
workflow: 'actions/runs/${{ github.run_id}}'
type: 'e2e'

slack_failure_notification:
if: ${{ failure() }}
needs: [anInitialSuite, authentication, deployAndRetrieve, manifestBuilder, pushAndPull, sObjectsDefinitions, templates]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'Core E2E Tests'
summary: 'An Initial Suite: ${{ needs.anInitialSuite.result }}, Authentication: ${{ needs.authentication.result }}, Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}, Manifest Builder: ${{ needs.manifestBuilder.result }}, Push and Pull: ${{ needs.pushAndPull.result }}, SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}, Templates: ${{ needs.templates.result }}'
result: 'Failure'
workflow: 'actions/runs/${{ github.run_id}}'
type: 'e2e'
18 changes: 15 additions & 3 deletions .github/workflows/lspE2E.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,26 @@ jobs:
automationBranch: ${{ inputs.automationBranch }}
testToRun: 'visualforceLsp.e2e.ts'

slack_notification:
if: ${{ always() }}
slack_success_notification:
if: ${{ success() }}
needs: [auraLSP, lwcLSP, visualforceLSP]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'LSP E2E Tests'
summary: 'Aura LSP: ${{ needs.auraLSP.result }}, LWC LSP: ${{ needs.lwcLSP.result }}, Visualforce LSP: ${{ needs.visualforceLSP.result }}'
result: ${{ github.event.workflow.result }}
result: 'Success'
workflow: 'actions/runs/${{ github.run_id}}'
type: 'e2e'

slack_failurenotification:
if: ${{ failure() }}
needs: [auraLSP, lwcLSP, visualforceLSP]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'LSP E2E Tests'
summary: 'Aura LSP: ${{ needs.auraLSP.result }},\nLWC LSP: ${{ needs.lwcLSP.result }},\nVisualforce LSP: ${{ needs.visualforceLSP.result }}'
result: 'Failure'
workflow: 'actions/runs/${{ github.run_id}}'
type: 'e2e'

0 comments on commit 63e096c

Please sign in to comment.