Skip to content

Commit

Permalink
Modify workflow to add orgBrowser test in redhat (#5917)
Browse files Browse the repository at this point in the history
* chore: orgBrowser test in redhat

* chore: screenshots
  • Loading branch information
CristiCanizales authored Oct 24, 2024
1 parent 5a8f9a7 commit 14b93d8
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 32 deletions.
63 changes: 32 additions & 31 deletions .github/workflows/deployRetrieveE2EredHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ on:
required: false
default: true
type: boolean
# orgBrowser:
# description: 'Org Browser'
# required: false
# default: true
# type: boolean
orgBrowser:
description: 'Org Browser'
required: false
default: true
type: boolean
# pushAndPull:
# description: 'Push and Pull'
# required: false
Expand Down Expand Up @@ -70,11 +70,11 @@ on:
required: false
default: true
type: boolean
# orgBrowser:
# description: 'Org Browser'
# required: false
# default: true
# type: boolean
orgBrowser:
description: 'Org Browser'
required: false
default: true
type: boolean
# pushAndPull:
# description: 'Push and Pull'
# required: false
Expand Down Expand Up @@ -127,15 +127,16 @@ jobs:
vscodeVersion: ${{ inputs.vscodeVersion }}
runId: ${{ inputs.runId }}

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

# pushAndPull:
# if: ${{ inputs.pushAndPull }}
Expand Down Expand Up @@ -163,8 +164,8 @@ jobs:
needs: [
# deployAndRetrieve,
# diffAndConflictDetection,
manifestBuilder
# orgBrowser,
manifestBuilder,
orgBrowser
# pushAndPull,
# mdDeployRetrieve
]
Expand All @@ -174,8 +175,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- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}'
summary: '\n- Manifest Builder: ${{ needs.manifestBuilder.result }}'
# 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 }}'
result: 'All the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'
Expand All @@ -185,8 +186,8 @@ jobs:
needs: [
# deployAndRetrieve,
# diffAndConflictDetection,
manifestBuilder
# orgBrowser,
manifestBuilder,
orgBrowser
# pushAndPull,
# mdDeployRetrieve
]
Expand All @@ -196,8 +197,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- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}'
summary: '\n- Manifest Builder: ${{ needs.manifestBuilder.result }}'
# 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 }}'
result: 'Not all the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'
Expand All @@ -207,8 +208,8 @@ jobs:
needs: [
# deployAndRetrieve,
# diffAndConflictDetection,
manifestBuilder
# orgBrowser,
manifestBuilder,
orgBrowser
# pushAndPull,
# mdDeployRetrieve
]
Expand All @@ -218,8 +219,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- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}'
summary: '\n- Manifest Builder: ${{ needs.manifestBuilder.result }}'
# 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 }}'
result: 'The workflow was cancelled.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'
7 changes: 6 additions & 1 deletion .github/workflows/runE2ETest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,12 @@ jobs:
ORG_ID: ${{ secrets.ORG_ID_E2E }}
THROTTLE_FACTOR: ${{ env.THROTTLE_FACTOR }}
- uses: actions/upload-artifact@v4
if: failure()
if: failure() && inputs.automationRepo == 'salesforcedx-vscode-automation-tests'
with:
name: screenshots-${{ inputs.testToRun }}-${{ matrix.os }}
path: ./${{ inputs.automationRepo }}/screenshots
- uses: actions/upload-artifact@v4
if: failure() && inputs.automationRepo == 'salesforcedx-vscode-automation-tests-redhat'
with:
name: screenshots-${{ inputs.testToRun }}-${{ matrix.os }}
path: ./salesforcedx-vscode/extensions/screenshots

0 comments on commit 14b93d8

Please sign in to comment.