Skip to content

Commit

Permalink
Modify workflow to add debugLwcTests test in redhat (#5924)
Browse files Browse the repository at this point in the history
* feat: debugLwcTests test in redhat

* chore: remove lwcredhat.yml
  • Loading branch information
CristiCanizales authored Oct 28, 2024
1 parent 28ad5d0 commit 492ed3c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 158 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ on:
required: false
default: true
type: boolean
lwcE2ETests:
description: 'LWC E2E Tests'
required: false
default: true
type: boolean
vscodeVersion:
description: 'VSCode Version'
required: false
Expand Down Expand Up @@ -59,15 +54,6 @@ jobs:
vscodeVersion: ${{ inputs.vscodeVersion || '1.92.2' }}
runId: ${{ inputs.runId || github.event.workflow_run.id }}

LWC_E2E_tests:
if: ${{ inputs.lwcE2ETests || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
uses: ./.github/workflows/lwcE2E.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch || 'main' }}
vscodeVersion: ${{ inputs.vscodeVersion || '1.92.2' }}
runId: ${{ inputs.runId || github.event.workflow_run.id }}

Apex_E2E_tests_min_vscode_version:
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' }}
uses: ./.github/workflows/apexE2E.yml
Expand All @@ -85,12 +71,3 @@ jobs:
automationBranch: 'main'
vscodeVersion: '1.86.0'
runId: ${{ github.event.workflow_run.id }}

LWC_E2E_tests_min_vscode_version:
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' }}
uses: ./.github/workflows/lwcE2E.yml
secrets: inherit
with:
automationBranch: 'main'
vscodeVersion: '1.86.0'
runId: ${{ github.event.workflow_run.id }}
4 changes: 2 additions & 2 deletions .github/workflows/e2eRedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:

LWC:
if: ${{ inputs.lwcE2ETests || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
uses: ./.github/workflows/lwcE2EredHat.yml
uses: ./.github/workflows/lwcE2E.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch || 'main' }}
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:

LWC_min_vscode_version:
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' }}
uses: ./.github/workflows/lwcE2EredHat.yml
uses: ./.github/workflows/lwcE2E.yml
secrets: inherit
with:
automationBranch: 'main'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/lwcE2E.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
vscodeVersion:
description: 'VSCode Version'
required: false
default: '1.92.2'
default: 'stable'
type: string
runId:
description: 'Run ID of the workflow run that created the vsixes'
Expand All @@ -48,7 +48,7 @@ on:
vscodeVersion:
description: 'VSCode Version'
required: false
default: '1.92.2'
default: 'stable'
type: string
runId:
description: 'Run ID of the workflow run that created the vsixes'
Expand All @@ -62,21 +62,21 @@ jobs:
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch }}
testToRun: 'debugLwcTests.e2e.ts'
automationRepo: 'salesforcedx-vscode-automation-tests-redhat'
testToRun: 'debugLwcTests.e2e.js'
vscodeVersion: ${{ inputs.vscodeVersion }}
runId: ${{ inputs.runId }}
os: '["macos-latest"]'

runLwcTests:
if: ${{ inputs.runLwcTests }}
uses: ./.github/workflows/runE2ETest.yml
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch }}
testToRun: 'runLwcTests.e2e.ts'
automationRepo: 'salesforcedx-vscode-automation-tests-redhat'
testToRun: 'runLwcTests.e2e.js'
vscodeVersion: ${{ inputs.vscodeVersion }}
runId: ${{ inputs.runId }}
os: '["macos-latest"]'

slack_success_notification:
if: ${{ success() }}
Expand Down
127 changes: 0 additions & 127 deletions .github/workflows/lwcE2EredHat.yml

This file was deleted.

0 comments on commit 492ed3c

Please sign in to comment.