Skip to content

Commit

Permalink
Minlopro: refactoring scratch generation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomeandrey committed Nov 19, 2024
1 parent 854131a commit 0c9328a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/create_crma_scratch_org.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
# Initiate CRMA scratch org generation
bash ./scripts/automations/create_crma_scratch_org.sh < $inputsFile
- name: 'Upload Scratch Org Credentials as Artifact'
if: ${{ success() && github.event.inputs.purgeOnCreate == 'false' }}
uses: actions/upload-artifact@v4
with:
name: minlopro-crma-scratch-org-credentials
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/create_scratch_org.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
bash ./scripts/deploy/authorize_org.sh --sfdxUrl "$DEV_HUB_AUTH_URL" --orgAlias "DevHub"
sf config set target-dev-hub=DevHub
- name: 'Spin Up Brand New Scratch Org'
continue-on-error: true
run: |
inputsFile="inputs.txt"
touch $inputsFile
Expand All @@ -50,6 +51,7 @@ jobs:
# Initiate scratch org generation
bash ./scripts/automations/create_scratch_org.sh < $inputsFile
- name: 'Upload Scratch Org Credentials as Artifact'
if: ${{ success() && github.event.inputs.purgeOnCreate == 'false' }}
uses: actions/upload-artifact@v4
with:
name: minlopro-scratch-org-credentials
Expand All @@ -59,6 +61,7 @@ jobs:
if-no-files-found: error
retention-days: 5
- name: 'Run Apex Tests With Coverage'
continue-on-error: true
if: ${{ success() && github.event.inputs.runApexTests == 'true' }}
run: npm run sf:apex:tests:coverage -- --target-org "ScratchOrg"
- name: 'Purge Scratch Org'
Expand Down

0 comments on commit 0c9328a

Please sign in to comment.