Skip to content

Commit

Permalink
chore: param repo
Browse files Browse the repository at this point in the history
  • Loading branch information
CristiCanizales committed Oct 18, 2024
1 parent ada793e commit 80fbd11
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/coreE2EredHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ jobs:
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch }}
automationRepo: 'salesforcedx-vscode-automation-tests-redhat'
testToRun: 'anInitialSuite.e2e.js'
vscodeVersion: ${{ inputs.vscodeVersion }}
runId: ${{ inputs.runId }}
Expand All @@ -122,6 +123,7 @@ jobs:
secrets: inherit
with:
automationBranch: ${{ inputs.automationBranch }}
automationRepo: 'salesforcedx-vscode-automation-tests-redhat'
testToRun: 'createProject.e2e.js'
vscodeVersion: ${{ inputs.vscodeVersion }}
runId: ${{ inputs.runId }}
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/runE2ETest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
required: false
default: 'main'
type: string
automationRepo:
description: 'Set the repo to use for automation tests'
required: false
default: 'salesforcedx-vscode-automation-tests'
type: string
testToRun:
description: 'Run this E2E test'
required: false
Expand Down Expand Up @@ -60,7 +65,7 @@ jobs:
cache: npm
cache-dependency-path: |
salesforcedx-vscode/package-lock.json
salesforcedx-vscode-automation-tests-redhat/package-lock.json
${{ inputs.automationRepo }}/package-lock.json
- name: Setup java
uses: actions/setup-java@v4
with:
Expand All @@ -69,13 +74,13 @@ jobs:
- name: Clone automation tests
uses: actions/checkout@v4
with:
repository: forcedotcom/salesforcedx-vscode-automation-tests-redhat
path: salesforcedx-vscode-automation-tests-redhat
repository: forcedotcom/${{ inputs.automationRepo }}
path: ${{ inputs.automationRepo }}
ref: ${{ inputs.automationBranch }}
- name: Install Test Dependencies
run: |
npm install
working-directory: salesforcedx-vscode-automation-tests-redhat
working-directory: ${{ inputs.automationRepo }}
- name: Install the Salesforce CLI
run: npm install -g @salesforce/cli
- name: Verify CLI
Expand All @@ -102,7 +107,7 @@ jobs:
with:
run: |
npm run automation-tests
working-directory: salesforcedx-vscode-automation-tests-redhat
working-directory: ${{ inputs.automationRepo }}
env:
VSCODE_VERSION: ${{ matrix.vscodeVersion }}
SPEC_FILES: ${{ inputs.testToRun }}
Expand All @@ -113,4 +118,4 @@ jobs:
if: failure()
with:
name: screenshots-${{ inputs.testToRun }}-${{ matrix.os }}
path: ./salesforcedx-vscode-automation-tests-redhat/screenshots
path: ./${{ inputs.automationRepo }}/screenshots

0 comments on commit 80fbd11

Please sign in to comment.