Skip to content

Commit

Permalink
chore: modify workflow to add apexReplayDebugger test in RedHat
Browse files Browse the repository at this point in the history
  • Loading branch information
daphne-sfdc committed Oct 30, 2024
1 parent f34d883 commit 359fdfc
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions .github/workflows/apexE2EredHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ on:
required: false
default: true
type: boolean
# apexReplayDebugger:
# description: 'Apex Replay Debugger'
# required: false
# default: true
# type: boolean
apexReplayDebugger:
description: 'Apex Replay Debugger'
required: false
default: true
type: boolean
# debugApexTests:
# description: 'Debug Apex Tests'
# required: false
Expand Down Expand Up @@ -55,11 +55,11 @@ on:
required: false
default: true
type: boolean
# apexReplayDebugger:
# description: 'Apex Replay Debugger'
# required: false
# default: true
# type: boolean
apexReplayDebugger:
description: 'Apex Replay Debugger'
required: false
default: true
type: boolean
# debugApexTests:
# description: 'Debug Apex Tests'
# required: false
Expand Down Expand Up @@ -97,15 +97,16 @@ jobs:
vscodeVersion: ${{ inputs.vscodeVersion }}
runId: ${{ inputs.runId }}

# apexReplayDebugger:
# if: ${{ inputs.apexReplayDebugger }}
# uses: ./.github/workflows/runE2ETest.yml
# secrets: inherit
# with:
# automationBranch: ${{ inputs.automationBranch }}
# testToRun: 'apexReplayDebugger.e2e.ts'
# vscodeVersion: ${{ inputs.vscodeVersion }}
# runId: ${{ inputs.runId }}
apexReplayDebugger:
if: ${{ inputs.apexReplayDebugger }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch }}
automationRepo: 'salesforcedx-vscode-automation-tests-redhat'
testToRun: 'apexReplayDebugger.e2e.js'
vscodeVersion: ${{ inputs.vscodeVersion }}
runId: ${{ inputs.runId }}

# debugApexTests:
# if: ${{ inputs.debugApexTests }}
Expand Down Expand Up @@ -140,47 +141,47 @@ jobs:

slack_success_notification:
if: ${{ success() }}
needs: [apexLSP, runApexTests]
# needs: [apexReplayDebugger, debugApexTests, trailApexReplayDebugger]
needs: [apexLSP, apexReplayDebugger, runApexTests]
# needs: [debugApexTests, trailApexReplayDebugger]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'Apex E2E Tests'
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
summary: '\n- Apex LSP: ${{ needs.apexLSP.result }}\n- Run Apex Tests: ${{ needs.runApexTests.result }}'
# summary: '\n- Apex Replay Debugger: ${{ needs.apexReplayDebugger.result }}\n- Debug Apex Tests: ${{ needs.debugApexTests.result }}\n- Trail Apex Replay Debugger: ${{ needs.trailApexReplayDebugger.result }}'
summary: '\n- Apex LSP: ${{ needs.apexLSP.result }}\n- Apex Replay Debugger: ${{ needs.apexReplayDebugger.result }}\n- Run Apex Tests: ${{ needs.runApexTests.result }}'
# summary: '\n- Debug Apex Tests: ${{ needs.debugApexTests.result }}\n- Trail Apex Replay Debugger: ${{ needs.trailApexReplayDebugger.result }}'
result: 'All the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'

slack_failure_notification:
if: ${{ failure() }}
needs: [apexLSP, runApexTests]
needs: [apexLSP, apexReplayDebugger, runApexTests]
# needs: [apexReplayDebugger, debugApexTests, trailApexReplayDebugger]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'Apex E2E Tests'
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
summary: '\n- Apex LSP: ${{ needs.apexLSP.result }}\n- Run Apex Tests: ${{ needs.runApexTests.result }}'
summary: '\n- Apex LSP: ${{ needs.apexLSP.result }}\n- Apex Replay Debugger: ${{ needs.apexReplayDebugger.result }}\n- Run Apex Tests: ${{ needs.runApexTests.result }}'
# summary: '\n- Apex Replay Debugger: ${{ needs.apexReplayDebugger.result }}\n- Debug Apex Tests: ${{ needs.debugApexTests.result }}\n- Trail Apex Replay Debugger: ${{ needs.trailApexReplayDebugger.result }}'
result: 'Not all the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'

slack_cancelled_notification:
if: ${{ cancelled() }}
needs: [apexLSP, runApexTests]
needs: [apexLSP, apexReplayDebugger, runApexTests]
# needs: [apexReplayDebugger, debugApexTests, trailApexReplayDebugger]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'Apex E2E Tests'
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
summary: '\n- Apex LSP: ${{ needs.apexLSP.result }}\n- Run Apex Tests: ${{ needs.runApexTests.result }}'
summary: '\n- Apex LSP: ${{ needs.apexLSP.result }}\n- Apex Replay Debugger: ${{ needs.apexReplayDebugger.result }}\n- Run Apex Tests: ${{ needs.runApexTests.result }}'
# summary: '\n- Apex Replay Debugger: ${{ needs.apexReplayDebugger.result }}\n- Debug Apex Tests: ${{ needs.debugApexTests.result }}\n- Trail Apex Replay Debugger: ${{ needs.trailApexReplayDebugger.result }}'
result: 'The workflow was cancelled.'
workflow: 'actions/runs/${{ github.run_id }}'
Expand Down

0 comments on commit 359fdfc

Please sign in to comment.