Skip to content

Commit

Permalink
chore: authentication test in redhat (#5915)
Browse files Browse the repository at this point in the history
  • Loading branch information
CristiCanizales authored Oct 23, 2024
1 parent d23ec56 commit c24fc2e
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/coreE2EredHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ on:
required: false
default: true
type: boolean
authentication:
description: 'Authentication'
required: false
default: true
type: boolean
createProject:
description: 'Create Project'
required: false
default: true
type: boolean
# authentication:
# description: 'Authentication'
# required: false
# default: true
# type: boolean
miscellaneous:
description: 'Miscellaneous Commands'
required: false
Expand Down Expand Up @@ -65,16 +65,16 @@ on:
required: false
default: true
type: boolean
authentication:
description: 'Authentication'
required: false
default: true
type: boolean
createProject:
description: 'Create Project'
required: false
default: true
type: boolean
# authentication:
# description: 'Authentication'
# required: false
# default: true
# type: boolean
miscellaneous:
description: 'Miscellaneous Commands'
required: false
Expand Down Expand Up @@ -117,6 +117,17 @@ jobs:
vscodeVersion: ${{ inputs.vscodeVersion }}
runId: ${{ inputs.runId }}

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

createProject:
if: ${{ inputs.createProject }}
uses: ./.github/workflows/runE2ETest.yml
Expand All @@ -128,17 +139,6 @@ jobs:
vscodeVersion: ${{ inputs.vscodeVersion }}
runId: ${{ inputs.runId }}

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

miscellaneous:
if: ${{ inputs.miscellaneous }}
uses: ./.github/workflows/runE2ETest.yml
Expand Down Expand Up @@ -187,8 +187,8 @@ jobs:
if: ${{ success() }}
needs: [
anInitialSuite,
authentication,
createProject,
# authentication,
miscellaneous,
sObjectsDefinitions,
# templates,
Expand All @@ -200,8 +200,8 @@ jobs:
title: 'Core E2E Tests'
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Create Project: ${{ needs.createProject.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- SFDX Project Json: ${{ needs.sfdxProjectJson.result}}'
# summary: '\n- Authentication: ${{ needs.authentication.result }}\n- Templates: ${{ needs.templates.result }}'
summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Create Project: ${{ needs.createProject.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- SFDX Project Json: ${{ needs.sfdxProjectJson.result}}'
# summary: '\n- Templates: ${{ needs.templates.result }}'
result: 'All the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'
Expand All @@ -210,8 +210,8 @@ jobs:
if: ${{ failure()}}
needs: [
anInitialSuite,
authentication,
createProject,
# authentication,
miscellaneous,
sObjectsDefinitions,
# templates,
Expand All @@ -223,8 +223,8 @@ jobs:
title: 'Core E2E Tests'
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Create Project: ${{ needs.createProject.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- SFDX Project Json: ${{ needs.sfdxProjectJson.result}}'
# summary: '\n- Authentication: ${{ needs.authentication.result }}\n- Templates: ${{ needs.templates.result }}'
summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Create Project: ${{ needs.createProject.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- SFDX Project Json: ${{ needs.sfdxProjectJson.result}}'
# summary: '\n- Templates: ${{ needs.templates.result }}'
result: 'Not all the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'
Expand All @@ -233,8 +233,8 @@ jobs:
if: ${{ cancelled() }}
needs: [
anInitialSuite,
authentication,
createProject,
# authentication,
miscellaneous,
sObjectsDefinitions,
# templates,
Expand All @@ -246,8 +246,8 @@ jobs:
title: 'Core E2E Tests'
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Create Project: ${{ needs.createProject.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- SFDX Project Json: ${{ needs.sfdxProjectJson.result}}'
# summary: '\n- Authentication: ${{ needs.authentication.result }}\n- Templates: ${{ needs.templates.result }}'
summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Create Project: ${{ needs.createProject.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- SFDX Project Json: ${{ needs.sfdxProjectJson.result}}'
# summary: '\n- Templates: ${{ needs.templates.result }}'
result: 'The workflow was cancelled.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'

0 comments on commit c24fc2e

Please sign in to comment.