Skip to content

Commit

Permalink
Mz/automation test bundling (#603)
Browse files Browse the repository at this point in the history
* chore: automation bundling test

* chore: use branches-ignore

* chore: bump sdr

* chore: publish bundle triggered by onRelease rather than github release
  • Loading branch information
mingxuanzhangsfdx authored Jun 6, 2024
1 parent 6f37c79 commit ea50fd9
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/releaseWithCoreBundle.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: publish source-tracking-bundle
on:
workflow_run:
workflows:
- publish
types:
- completed

workflow_dispatch:
inputs:
branch:
Expand All @@ -10,7 +16,8 @@ on:

jobs:
call-release-workflow:
if: ${{ inputs.branch || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')}}
uses: forcedotcom/bundle-publish-scripts/.github/workflows/releaseWithCoreBundle.yml@main
secrets: inherit
with:
branch: ${{ inputs.branch }}
branch: ${{ inputs.branch || 'main'}}
10 changes: 10 additions & 0 deletions .github/workflows/validate-bundle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Run Tests for bundling against Change

on:
push:
branches-ignore: [main]

jobs:
call-validate-bundle:
uses: forcedotcom/bundle-publish-scripts/.github/workflows/validateBundleForDependents.yml@main
secrets: inherit
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@oclif/core": "^3.26.6",
"@salesforce/core": "^7.3.9",
"@salesforce/kit": "^3.1.2",
"@salesforce/source-deploy-retrieve": "^11.6.4",
"@salesforce/source-deploy-retrieve": "^11.6.5",
"@salesforce/ts-types": "^2.0.9",
"fast-xml-parser": "^4.3.6",
"graceful-fs": "^4.2.11",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -676,10 +676,10 @@
resolved "https://registry.yarnpkg.com/@salesforce/schemas/-/schemas-1.9.0.tgz#ba477a112653a20b4edcf989c61c57bdff9aa3ca"
integrity sha512-LiN37zG5ODT6z70sL1fxF7BQwtCX9JOWofSU8iliSNIM+WDEeinnoFtVqPInRSNt8I0RiJxIKCrqstsmQRBNvA==

"@salesforce/source-deploy-retrieve@^11.6.4":
version "11.6.4"
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-11.6.4.tgz#9aa54f115b1f58a08a3f38d7945ce734feba824c"
integrity sha512-HwR33sizKJD+33Xgo7IiwnHYLXuKTwShzlr4Rv3oRBoHZyaz4wBpJOtVldwVq5l5U9++Nk5iBI4IXyWaX7SlOg==
"@salesforce/source-deploy-retrieve@^11.6.5":
version "11.6.5"
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-11.6.5.tgz#5a35edc42b9f0fc32384ce2515cecea6ccf3c459"
integrity sha512-JwYhLOLAkyIBsZXMt9OnDUqI8BJRu6sr5cs6EXfOD4rpIrEqpNN3+m9Gnkoe3onmTBUg4AuxFTuBT8SaBorw2g==
dependencies:
"@salesforce/core" "^7.3.9"
"@salesforce/kit" "^3.1.1"
Expand Down

0 comments on commit ea50fd9

Please sign in to comment.