From a1c6144e18e2526ce0f00b42493835b19e8af6f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristina=20Isabel=20Ca=C3=B1izales?= Date: Mon, 28 Oct 2024 20:19:26 -0300 Subject: [PATCH] chore: runApexTests test in redhat --- .github/workflows/apexE2EredHat.yml | 63 +++++++++++++++-------------- 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/.github/workflows/apexE2EredHat.yml b/.github/workflows/apexE2EredHat.yml index 85f6d7aa2e..62ed38e123 100644 --- a/.github/workflows/apexE2EredHat.yml +++ b/.github/workflows/apexE2EredHat.yml @@ -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 @@ -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 @@ -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 }} @@ -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'