Skip to content

Commit

Permalink
test: metadata deploy and retrieve e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxuanzhangsfdx committed Sep 16, 2024
1 parent 5f7f5c4 commit 4630af8
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions .github/workflows/deployRetrieveE2E.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ on:
required: false
default: true
type: boolean
mdDeployRetrieve:
description: 'Metadata Deploy and Retrieve'
required: false
default: true
type: boolean
vscodeVersion:
description: 'VSCode Version'
required: false
Expand Down Expand Up @@ -75,6 +80,11 @@ on:
required: false
default: true
type: boolean
mdDeployRetrieve:
description: 'Metadata Deploy and Retrieve'
required: false
default: true
type: boolean
vscodeVersion:
description: 'VSCode Version'
required: false
Expand Down Expand Up @@ -135,6 +145,16 @@ jobs:
testToRun: 'pushAndPull.e2e.ts'
vscodeVersion: ${{ inputs.vscodeVersion }}
runId: ${{ inputs.runId }}

mdDeployRetrieve:
if: ${{ inputs.mdDeployRetrieve }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch }}
testToRun: 'metadataDeployRetrieve.e2e.ts'
vscodeVersion: ${{ inputs.vscodeVersion }}
runId: ${{ inputs.runId }}

slack_success_notification:
if: ${{ success() }}
Expand All @@ -143,7 +163,8 @@ jobs:
# diffAndConflictDetection,
manifestBuilder,
orgBrowser,
pushAndPull
pushAndPull,
mdDeployRetrieve
]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
Expand All @@ -152,7 +173,7 @@ jobs:
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
# summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Diff and Conflict Detection: ${{ needs.diffAndConflictDetection.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.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 }}\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 }}\n- Push and Pull: ${{ needs.pushAndPull.result }}\n- MD Deploy and Retrieve: ${{needs.mdDeployRetrieve.result}} '
result: 'All the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'
Expand All @@ -164,7 +185,8 @@ jobs:
# diffAndConflictDetection,
manifestBuilder,
orgBrowser,
pushAndPull
pushAndPull,
mdDeployRetrieve
]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
Expand All @@ -173,7 +195,7 @@ jobs:
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
# summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Diff and Conflict Detection: ${{ needs.diffAndConflictDetection.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.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 }}\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 }}\n- Push and Pull: ${{ needs.pushAndPull.result }}\n- MD Deploy and Retrieve: ${{needs.mdDeployRetrieve.result}} '
result: 'Not all the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'
Expand All @@ -185,7 +207,8 @@ jobs:
# diffAndConflictDetection,
manifestBuilder,
orgBrowser,
pushAndPull
pushAndPull,
mdDeployRetrieve
]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
Expand All @@ -194,7 +217,7 @@ jobs:
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
# summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Diff and Conflict Detection: ${{ needs.diffAndConflictDetection.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.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 }}\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 }}\n- Push and Pull: ${{ needs.pushAndPull.result }}\n- MD Deploy and Retrieve: ${{needs.mdDeployRetrieve.result}} '
result: 'The workflow was cancelled.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'

0 comments on commit 4630af8

Please sign in to comment.