From 4241904d1fefff4e99a70124443bb57257162d8f Mon Sep 17 00:00:00 2001 From: Lincoln Rychecky Date: Thu, 22 Aug 2024 08:42:35 -0600 Subject: [PATCH] full path to SFDX installation. --- .github/workflows/apex-tests-pr.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/apex-tests-pr.yml b/.github/workflows/apex-tests-pr.yml index d02e806..9672cff 100644 --- a/.github/workflows/apex-tests-pr.yml +++ b/.github/workflows/apex-tests-pr.yml @@ -19,9 +19,9 @@ jobs: - name: Install Salesforce CLI run: | - npm install sfdx-cli - node_modules/sfdx-cli/bin/run --version - node_modules/sfdx-cli/bin/run plugins --core + npm install --global sfdx-cli + sfdx --version + sfdx plugins --core - name: Checkout repository uses: actions/checkout@v2 @@ -38,13 +38,13 @@ jobs: fi - name: Authenticate to Dev Hub - run: node_modules/.bin/sfdx auth:sfdxurl:store -f ./DEVHUB_SFDX_URL.txt -a devhub -d + run: sfdx auth:sfdxurl:store -f ./DEVHUB_SFDX_URL.txt -a devhub -d - name: Create Scratch Org - run: node_modules/.bin/sfdx force:org:create -s -f config/project-scratch-def.json -a MyScratchOrg + run: sfdx force:org:create -s -f config/project-scratch-def.json -a MyScratchOrg - name: Push Source to Scratch Org - run: node_modules/.bin/sfdx force:source:push -u MyScratchOrg + run: sfdx force:source:push -u MyScratchOrg - name: Run Apex Tests - run: node_modules/.bin/sfdx force:apex:test:run -u MyScratchOrg --wait 10 --resultformat human --codecoverage + run: sfdx force:apex:test:run -u MyScratchOrg --wait 10 --resultformat human --codecoverage