Skip to content

LWC End to End Tests #27

LWC End to End Tests

LWC End to End Tests #27

Workflow file for this run

name: LWC End to End Tests
on:
workflow_dispatch:
inputs:
automationBranch:
description: 'Set the branch to use for automation tests'
required: false
default: 'develop'
type: string
lwcLsp:
description: 'LWC LSP'
required: false
default: true
type: boolean
debugLwcTests:
description: 'Debug LWC Tests'
required: false
default: true
type: boolean
runLwcTests:
description: 'Run LWC Tests'
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
lwcLsp:
description: 'LWC LSP'
required: false
default: true
type: boolean
debugLwcTests:
description: 'Debug LWC Tests'
required: false
default: true
type: boolean
runLwcTests:
description: 'Run LWC Tests'
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
jobs:
lwcLsp:
if: ${{ inputs.lwcLsp }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch }}
testToRun: 'lwcLsp.e2e.ts'
vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }}
runId: ${{ inputs.runId }}
debugLwcTests:
if: ${{ inputs.debugLwcTests }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch }}
testToRun: 'debugLwcTests.e2e.ts'
vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }}
runId: ${{ inputs.runId }}
runLwcTests:
if: ${{ inputs.runLwcTests }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch }}
testToRun: 'runLwcTests.e2e.ts'
vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }}
runId: ${{ inputs.runId }}
slack_success_notification:
if: ${{ success() }}
needs: [lwcLsp, debugLwcTests, runLwcTests]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'LWC E2E Tests'
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
summary: '\n- LWC LSP: ${{ needs.lwcLsp.result }}\n- Debug LWC Tests: ${{ needs.debugLwcTests.result }}\n- Run LWC Tests: ${{ needs.runLwcTests.result }}'
result: 'All the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'
slack_failure_notification:
if: ${{ failure() }}
needs: [lwcLsp, debugLwcTests, runLwcTests]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'LWC E2E Tests'
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
summary: '\n- LWC LSP: ${{ needs.lwcLsp.result }}\n- Debug LWC Tests: ${{ needs.debugLwcTests.result }}\n- Run LWC Tests: ${{ needs.runLwcTests.result }}'
result: 'Not all the tests passed.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'
slack_cancelled_notification:
if: ${{ cancelled() }}
needs: [lwcLsp, debugLwcTests, runLwcTests]
uses: ./.github/workflows/slackNotification.yml
secrets: inherit
with:
title: 'LWC E2E Tests'
vscodeVersion: ${{ inputs.vscodeVersion }}
testsBranch: ${{ inputs.automationBranch }}
summary: '\n- LWC LSP: ${{ needs.lwcLsp.result }}\n- Debug LWC Tests: ${{ needs.debugLwcTests.result }}\n- Run LWC Tests: ${{ needs.runLwcTests.result }}'
result: 'The workflow was cancelled.'
workflow: 'actions/runs/${{ github.run_id }}'
type: 'e2e'