Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify workflow to add runApexTests test in redhat #5927

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 32 additions & 31 deletions .github/workflows/apexE2EredHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ on:
# required: false
# default: true
# type: boolean
# runApexTests:
# description: 'Run Apex Tests'
# required: false
# default: true
# type: boolean
runApexTests:
description: 'Run Apex Tests'
required: false
default: true
type: boolean
# trailApexReplayDebugger:
# description: 'Trail Apex Replay Debugger'
# required: false
Expand Down Expand Up @@ -65,11 +65,11 @@ on:
# required: false
# default: true
# type: boolean
# runApexTests:
# description: 'Run Apex Tests'
# required: false
# default: true
# type: boolean
runApexTests:
description: 'Run Apex Tests'
required: false
default: true
type: boolean
# trailApexReplayDebugger:
# description: 'Trail Apex Replay Debugger'
# required: false
Expand Down Expand Up @@ -117,15 +117,16 @@ jobs:
# vscodeVersion: ${{ inputs.vscodeVersion }}
# runId: ${{ inputs.runId }}

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

# trailApexReplayDebugger:
# if: ${{ inputs.trailApexReplayDebugger }}
Expand All @@ -139,48 +140,48 @@ jobs:

slack_success_notification:
if: ${{ success() }}
needs: [apexLSP]
# needs: [apexLSP, apexReplayDebugger, debugApexTests, runApexTests, trailApexReplayDebugger]
needs: [apexLSP, 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 }}'
# summary: '\n- Apex LSP: ${{ needs.apexLSP.result }}\n- Apex Replay Debugger: ${{ needs.apexReplayDebugger.result }}\n- Debug Apex Tests: ${{ needs.debugApexTests.result }}\n- Run Apex Tests: ${{ needs.runApexTests.result }}\n- Trail Apex Replay Debugger: ${{ needs.trailApexReplayDebugger.result }}'
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 }}'
result: 'All the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'

slack_failure_notification:
if: ${{ failure() }}
needs: [apexLSP]
# needs: [apexLSP, apexReplayDebugger, debugApexTests, runApexTests, trailApexReplayDebugger]
needs: [apexLSP, 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 }}'
# summary: '\n- Apex LSP: ${{ needs.apexLSP.result }}\n- Apex Replay Debugger: ${{ needs.apexReplayDebugger.result }}\n- Debug Apex Tests: ${{ needs.debugApexTests.result }}\n- Run Apex Tests: ${{ needs.runApexTests.result }}\n- Trail Apex Replay Debugger: ${{ needs.trailApexReplayDebugger.result }}'
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 }}'
result: 'Not all the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'

slack_cancelled_notification:
if: ${{ cancelled() }}
needs: [apexLSP]
# needs: [apexLSP, apexReplayDebugger, debugApexTests, runApexTests, trailApexReplayDebugger]
needs: [apexLSP, 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 }}'
# summary: '\n- Apex LSP: ${{ needs.apexLSP.result }}\n- Apex Replay Debugger: ${{ needs.apexReplayDebugger.result }}\n- Debug Apex Tests: ${{ needs.debugApexTests.result }}\n- Run Apex Tests: ${{ needs.runApexTests.result }}\n- Trail Apex Replay Debugger: ${{ needs.trailApexReplayDebugger.result }}'
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 }}'
result: 'The workflow was cancelled.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'
Loading