Skip to content

Core End to End Tests #235

Core End to End Tests

Core End to End Tests #235

Workflow file for this run

name: Core End to End Tests
on:
workflow_dispatch:
inputs:
automationBranch:
description: 'Set the branch to use for automation tests'
required: false
default: 'develop'
type: string
anInitialSuite:
description: 'Verify Extensions'
required: false
default: true
type: boolean
authentication:
description: 'Authentication'
required: false
default: true
type: boolean
miscellaneous:
description: 'Miscellaneous Commands'
required: false
default: true
type: boolean
sObjectsDefinitions:
description: 'sObjects Definitions'
required: false
default: true
type: boolean
templates:
description: 'Create Commands'
required: false
default: true
type: boolean
vscodeVersion:
description: 'VSCode Version'
required: false
default: '1.85.2'
type: string
runId:
description: 'Run ID of the workflow run that created the vsixes'
required: true
type: string
workflow_call:
inputs:
automationBranch:
description: 'Set the branch to use for automation tests'
required: false
default: 'develop'
type: string
anInitialSuite:
description: 'Verify Extensions'
required: false
default: true
type: boolean
authentication:
description: 'Authentication'
required: false
default: true
type: boolean
miscellaneous:
description: 'Miscellaneous Commands'
required: false
default: true
type: boolean
sObjectsDefinitions:
description: 'sObjects Definitions'
required: false
default: true
type: boolean
templates:
description: 'Create Commands'
required: false
default: true
type: boolean
vscodeVersion:
description: 'VSCode Version'
required: false
default: '1.85.2'
type: string
runId:
description: 'Run ID of the workflow run that created the vsixes'
required: false
type: string
jobs:
anInitialSuite:
if: ${{ inputs.anInitialSuite }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch }}
testToRun: 'anInitialSuite.e2e.ts'
vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }}
runId: ${{ inputs.runId }}
authentication:
if: ${{ inputs.authentication }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch }}
testToRun: 'authentication.e2e.ts'
vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }}
runId: ${{ inputs.runId }}
miscellaneous:
if: ${{ inputs.miscellaneous }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch }}
testToRun: 'miscellaneous.e2e.ts'
vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }}
runId: ${{ inputs.runId }}
sObjectsDefinitions:
if: ${{ inputs.sObjectsDefinitions }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch }}
testToRun: 'sObjectsDefinitions.e2e.ts'
vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }}
runId: ${{ inputs.runId }}
templates:
if: ${{ inputs.templates }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch }}
testToRun: 'templates.e2e.ts'
vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }}
runId: ${{ inputs.runId }}
slack_success_notification:
if: ${{ success() }}
needs:
[
anInitialSuite,
authentication,
miscellaneous,
sObjectsDefinitions,
templates
]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'Core E2E Tests'
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- Templates: ${{ needs.templates.result }}'
result: 'All the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'
slack_failure_notification:
if: ${{ failure()}}
needs:
[
anInitialSuite,
authentication,
miscellaneous,
sObjectsDefinitions,
templates
]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'Core E2E Tests'
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- Templates: ${{ needs.templates.result }}'
result: 'Not all the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'
slack_cancelled_notification:
if: ${{ cancelled() }}
needs:
[
anInitialSuite,
authentication,
miscellaneous,
sObjectsDefinitions,
templates
]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'Core E2E Tests'
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- Templates: ${{ needs.templates.result }}'
result: 'The workflow was cancelled.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'