Skip to content

E2E Test Suite - ESM #69

E2E Test Suite - ESM

E2E Test Suite - ESM #69

Workflow file for this run

name: E2E Test Suite - ESM
on:
workflow_run:
workflows:
- Nightly Build Develop
- Test, Build, and Release
types:
- completed
workflow_dispatch:
inputs:
automationBranch:
description: 'Set the branch to use for automation tests'
required: false
default: 'testesm'
type: string
deployAndRetrieve:
description: 'Deploy and Retrieve'
required: false
default: true
type: boolean
manifestBuilder:
description: 'Manifest Builder'
required: false
default: true
type: boolean
pushAndPull:
description: 'Push and Pull'
required: false
default: true
type: boolean
auraLsp:
description: 'Aura LSP'
required: false
default: true
type: boolean
lwcLsp:
description: 'LWC LSP'
required: false
default: true
type: boolean
visualforceLsp:
description: 'Visualforce LSP'
required: false
default: true
type: boolean
vscodeVersion:
description: 'VSCode Version'
required: false
default: 'stable'
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: 'testesm'
type: string
deployAndRetrieve:
description: 'Deploy and Retrieve'
required: false
default: true
type: boolean
manifestBuilder:
description: 'Manifest Builder'
required: false
default: true
type: boolean
pushAndPull:
description: 'Push and Pull'
required: false
default: true
type: boolean
auraLsp:
description: 'Aura LSP'
required: false
default: true
type: boolean
lwcLsp:
description: 'LWC LSP'
required: false
default: true
type: boolean
visualforceLsp:
description: 'Visualforce LSP'
required: false
default: true
type: boolean
vscodeVersion:
description: 'VSCode Version'
required: false
default: 'stable'
type: string
runId:
description: 'Run ID of the workflow run that created the vsixes'
required: true
type: string
jobs:
deployAndRetrieve:
if: ${{ inputs.deployAndRetrieve || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch || 'testesm' }}
testToRun: 'deployAndRetrieve.e2e.ts'
vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }}
runId: ${{ inputs.runId || github.event.workflow_run.id }}
os: '["macos-latest", "ubuntu-latest", "windows-latest"]'
manifestBuilder:
if: ${{ inputs.manifestBuilder || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch || 'testesm' }}
testToRun: 'manifestBuilder.e2e.ts'
vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }}
runId: ${{ inputs.runId || github.event.workflow_run.id }}
os: '["macos-latest", "ubuntu-latest", "windows-latest"]'
pushAndPull:
if: ${{ inputs.pushAndPull || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch || 'testesm' }}
testToRun: 'pushAndPull.e2e.ts'
vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }}
runId: ${{ inputs.runId || github.event.workflow_run.id }}
os: '["macos-latest", "ubuntu-latest", "windows-latest"]'
auraLsp:
if: ${{ inputs.auraLsp || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch || 'testesm' }}
testToRun: 'auraLsp.e2e.ts'
vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }}
runId: ${{ inputs.runId || github.event.workflow_run.id }}
os: '["macos-latest", "ubuntu-latest", "windows-latest"]'
visualforceLsp:
if: ${{ inputs.visualforceLsp || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch || 'testesm' }}
testToRun: 'visualforceLsp.e2e.ts'
vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }}
runId: ${{ inputs.runId || github.event.workflow_run.id }}
os: '["macos-latest", "ubuntu-latest"]'
lwcLsp:
if: ${{ inputs.lwcLsp || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch || 'testesm' }}
testToRun: 'lwcLsp.e2e.ts'
vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }}
runId: ${{ inputs.runId || github.event.workflow_run.id }}
os: '["macos-latest", "ubuntu-latest", "windows-latest"]'
slack_success_notification:
if: ${{ success() }}
needs:
[
deployAndRetrieve,
manifestBuilder,
pushAndPull,
auraLsp,
lwcLsp,
visualforceLsp
]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'E2E Test Suite - ESM'
vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }}
testsBranch: ${{ inputs.automationBranch || 'testesm' }}
summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}\n- Aura LSP: ${{ needs.auraLSP.result }}\n- LWC LSP: ${{ needs.lwcLsp.result }}\n- Visualforce LSP: ${{ needs.visualforceLSP.result }}'
result: 'All the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'
slack_failure_notification:
if: ${{ failure() }}
needs:
[
deployAndRetrieve,
manifestBuilder,
pushAndPull,
auraLsp,
lwcLsp,
visualforceLsp
]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'E2E Test Suite - ESM'
vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }}
testsBranch: ${{ inputs.automationBranch || 'testesm' }}
summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}\n- Aura LSP: ${{ needs.auraLSP.result }}\n- LWC LSP: ${{ needs.lwcLsp.result }}\n- Visualforce LSP: ${{ needs.visualforceLSP.result }}'
result: 'Not all the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'
slack_cancelled_notification:
if: ${{ cancelled() }}
needs:
[
deployAndRetrieve,
manifestBuilder,
pushAndPull,
auraLsp,
lwcLsp,
visualforceLsp
]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'E2E Test Suite - ESM'
vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }}
testsBranch: ${{ inputs.automationBranch || 'testesm' }}
summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}\n- Aura LSP: ${{ needs.auraLSP.result }}\n- LWC LSP: ${{ needs.lwcLsp.result }}\n- Visualforce LSP: ${{ needs.visualforceLSP.result }}'
result: 'The workflow was cancelled.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'