Skip to content

Commit a81ac78

Browse files
committed
set the scratch org alias and use were needed.
1 parent 35b33b7 commit a81ac78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
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
27+
run: sf org create scratch --definition-file config/project-scratch-def.json --set-default --duration-days 1 --no-track-source --alias fflibapexcommon
2828
# - name: Install required dependency frameworks
2929
# run: sf shane github src install --convert --githubuser apex-enterprise-patterns --repo fflib-apex-mocks --path sfdx-source/apex-mocks
3030
- name: Clone fflib-apex-mocks repo
3131
run: mkdir temp && git clone https://github.com/apex-enterprise-patterns/fflib-apex-mocks.git "temp/fflib-apex-mocks"
3232
- name: Deploy and compile the fflib-apex-mocks codebase
33-
run: cd temp/fflib-apex-mocks && sf project deploy start --ignore-conflicts && cd ../..
33+
run: cd temp/fflib-apex-mocks && sf project deploy start --ignore-conflicts --target-org fflibapexcommon && cd ../..
3434
- name: Deploy and compile the codebase
3535
run: sf project deploy start
3636
- name: Run the core framework tests
@@ -39,7 +39,7 @@ jobs:
3939
# that could mask a test failure. A much more involved solution would've been to do a workflow_dispatch to the samplecode project.
4040
- name: Install sample code project to verify with
4141
# 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 && cd ../..
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 ../..
4343
- name: Run the core framework tests and the sample code project tests
4444
run: sf apex run test --wait 5
4545
- name: Destroy scratch org

0 commit comments

Comments
 (0)