Skip to content

Commit 2096cb6

Browse files
Merge pull request #499 from apex-enterprise-patterns/devops/adjustments-to-build-script-from-SFv2-architecture-change
Devops/adjustments to build script from SFv2 architecture change
2 parents 4613569 + a81ac78 commit 2096cb6

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/deploy.and.test.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,27 @@ jobs:
1919
uses: apex-enterprise-patterns/setup-sfdx@v2 #We're using a fork of https://github.com/sfdx-actions/setup-sfdx for safety
2020
with:
2121
sfdx-auth-url: ${{ secrets.DEVHUB_SFDXURL }}
22-
- name: Install the required plugins
23-
run: echo y | sf plugins install shane-sfdx-plugins
22+
# - name: Install the required plugins
23+
# run: echo y | sf plugins install shane-sfdx-plugins
2424
- name: Setup the config parameters needed
2525
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
2626
- name: Create the scratch org
27-
run: sf org create scratch --definition-file config/project-scratch-def.json --set-default --duration-days 1 --no-track-source
28-
- name: Install required dependency frameworks
29-
run: sf shane github src install --convert --githubuser apex-enterprise-patterns --repo fflib-apex-mocks --path sfdx-source/apex-mocks
27+
run: sf org create scratch --definition-file config/project-scratch-def.json --set-default --duration-days 1 --no-track-source --alias fflibapexcommon
28+
# - name: Install required dependency frameworks
29+
# run: sf shane github src install --convert --githubuser apex-enterprise-patterns --repo fflib-apex-mocks --path sfdx-source/apex-mocks
30+
- name: Clone fflib-apex-mocks repo
31+
run: mkdir temp && git clone https://github.com/apex-enterprise-patterns/fflib-apex-mocks.git "temp/fflib-apex-mocks"
32+
- name: Deploy and compile the fflib-apex-mocks codebase
33+
run: cd temp/fflib-apex-mocks && sf project deploy start --ignore-conflicts --target-org fflibapexcommon && cd ../..
3034
- name: Deploy and compile the codebase
3135
run: sf project deploy start
3236
- name: Run the core framework tests
3337
run: sf apex run test --wait 5
3438
# Intentionally install the Sample Code after the core AEP Commons test pass succeeds so that we don't deploy anything in Sample Code
3539
# that could mask a test failure. A much more involved solution would've been to do a workflow_dispatch to the samplecode project.
3640
- name: Install sample code project to verify with
37-
run: sf shane github src install --convert --githubuser apex-enterprise-patterns --repo fflib-apex-common-samplecode --path sfdx-source/apex-common-samplecode
41+
# run: sf shane github src install --convert --githubuser apex-enterprise-patterns --repo fflib-apex-common-samplecode --path sfdx-source/apex-common-samplecode
42+
run: git clone https://github.com/apex-enterprise-patterns/fflib-apex-common-samplecode.git "temp/fflib-apex-common-samplecode" && cd temp/fflib-apex-common-samplecode && sf project deploy start --ignore-conflicts --target-org fflibapexcommon && cd ../..
3843
- name: Run the core framework tests and the sample code project tests
3944
run: sf apex run test --wait 5
4045
- name: Destroy scratch org

0 commit comments

Comments
 (0)