Skip to content

Commit

Permalink
changes made to disable usage of shane-sfdx-plugins until a suitabl…
Browse files Browse the repository at this point in the history
…e replacement can be created
  • Loading branch information
ImJohnMDaniel committed Nov 29, 2024
1 parent 4613569 commit 4f8bc7c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/deploy.and.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,27 @@ jobs:
uses: apex-enterprise-patterns/setup-sfdx@v2 #We're using a fork of https://github.com/sfdx-actions/setup-sfdx for safety
with:
sfdx-auth-url: ${{ secrets.DEVHUB_SFDXURL }}
- name: Install the required plugins
run: echo y | sf plugins install shane-sfdx-plugins
# - name: Install the required plugins
# run: echo y | sf plugins install shane-sfdx-plugins
- name: Setup the config parameters needed
run: sf config set target-dev-hub SFDX-ENV --global #Even though the setup-sfdx action uses --setdefaultdevhubusername, it doesn't seem to stick since it uses --setdefaultusername so we brute force it here
- name: Create the scratch org
run: sf org create scratch --definition-file config/project-scratch-def.json --set-default --duration-days 1 --no-track-source
- name: Install required dependency frameworks
run: sf shane github src install --convert --githubuser apex-enterprise-patterns --repo fflib-apex-mocks --path sfdx-source/apex-mocks
# - name: Install required dependency frameworks
# run: sf shane github src install --convert --githubuser apex-enterprise-patterns --repo fflib-apex-mocks --path sfdx-source/apex-mocks
- name: Clone fflib-apex-mocks repo
run: mkdir temp && git clone [email protected]:apex-enterprise-patterns/fflib-apex-mocks.git "temp/fflib-apex-mocks"
- name: Deploy and compile the fflib-apex-mocks codebase
run: cd temp/fflib-apex-mocks && sf project deploy start --ignore-conflicts && cd ../..
- name: Deploy and compile the codebase
run: sf project deploy start
- name: Run the core framework tests
run: sf apex run test --wait 5
# Intentionally install the Sample Code after the core AEP Commons test pass succeeds so that we don't deploy anything in Sample Code
# that could mask a test failure. A much more involved solution would've been to do a workflow_dispatch to the samplecode project.
- name: Install sample code project to verify with
run: sf shane github src install --convert --githubuser apex-enterprise-patterns --repo fflib-apex-common-samplecode --path sfdx-source/apex-common-samplecode
# run: sf shane github src install --convert --githubuser apex-enterprise-patterns --repo fflib-apex-common-samplecode --path sfdx-source/apex-common-samplecode
run: git clone [email protected]:apex-enterprise-patterns/fflib-apex-mocks.git "temp/fflib-apex-common-samplecode" && cd temp/fflib-apex-common-samplecode && sf project deploy start --ignore-conflicts && cd ../..
- name: Run the core framework tests and the sample code project tests
run: sf apex run test --wait 5
- name: Destroy scratch org
Expand Down

0 comments on commit 4f8bc7c

Please sign in to comment.