Skip to content

Commit

Permalink
chore: deployAndRetrieve test in redhat (#5920)
Browse files Browse the repository at this point in the history
  • Loading branch information
CristiCanizales authored Oct 28, 2024
1 parent 14b93d8 commit 2b64e05
Showing 1 changed file with 29 additions and 28 deletions.
57 changes: 29 additions & 28 deletions .github/workflows/deployRetrieveE2EredHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ on:
required: false
default: 'main'
type: string
# deployAndRetrieve:
# description: 'Deploy and Retrieve'
# required: false
# default: true
# type: boolean
deployAndRetrieve:
description: 'Deploy and Retrieve'
required: false
default: true
type: boolean
# diffAndConflictDetection:
# description: "Diff and Conflict Detection"
# required: false
Expand Down Expand Up @@ -55,11 +55,11 @@ on:
required: false
default: 'main'
type: string
# deployAndRetrieve:
# description: 'Deploy and Retrieve'
# required: false
# default: true
# type: boolean
deployAndRetrieve:
description: 'Deploy and Retrieve'
required: false
default: true
type: boolean
# diffAndConflictDetection:
# description: "Diff and Conflict Detection"
# required: false
Expand Down Expand Up @@ -96,15 +96,16 @@ on:
type: string

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

# diffAndConflictDetection:
# if: ${{ inputs.diffAndConflictDetection }}
Expand Down Expand Up @@ -162,7 +163,7 @@ jobs:
slack_success_notification:
if: ${{ success() }}
needs: [
# deployAndRetrieve,
deployAndRetrieve,
# diffAndConflictDetection,
manifestBuilder,
orgBrowser
Expand All @@ -175,16 +176,16 @@ jobs:
title: 'Deploy and Retrieve E2E Tests'
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
# summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Diff and Conflict Detection: ${{ needs.diffAndConflictDetection.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}'
summary: '\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}'
# summary: '\n- Diff and Conflict Detection: ${{ needs.diffAndConflictDetection.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}'
summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}'
result: 'All the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'

slack_failure_notification:
if: ${{ failure()}}
needs: [
# deployAndRetrieve,
deployAndRetrieve,
# diffAndConflictDetection,
manifestBuilder,
orgBrowser
Expand All @@ -197,16 +198,16 @@ jobs:
title: 'Deploy and Retrieve E2E Tests'
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
# summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Diff and Conflict Detection: ${{ needs.diffAndConflictDetection.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}'
summary: '\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}'
# summary: '\n- Diff and Conflict Detection: ${{ needs.diffAndConflictDetection.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}'
summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}'
result: 'Not all the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'

slack_cancelled_notification:
if: ${{ cancelled() }}
needs: [
# deployAndRetrieve,
deployAndRetrieve,
# diffAndConflictDetection,
manifestBuilder,
orgBrowser
Expand All @@ -219,8 +220,8 @@ jobs:
title: 'Deploy and Retrieve E2E Tests'
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
# summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Diff and Conflict Detection: ${{ needs.diffAndConflictDetection.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}'
summary: '\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}'
# summary: '\n- Diff and Conflict Detection: ${{ needs.diffAndConflictDetection.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}'
summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}'
result: 'The workflow was cancelled.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'

0 comments on commit 2b64e05

Please sign in to comment.