Skip to content

Commit

Permalink
Update testExternalProjects.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CristiCanizales authored Jun 3, 2024
1 parent 3824ff1 commit f8090f3
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/testExternalProjects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,39 @@ jobs:
repository: ${{ inputs.externalProjectGit }}
- name: Swap this dependency for the bundled version
run: |
yarn install --network-timeout 600000
yarn remove @salesforce/core
yarn add CristiCanizales/sfdx-core#${{ inputs.bundledBranch }}
cd node_modules/@salesforce/core
yarn install
- name: Add dependencies to bundle node_modules
run: |
yarn install --network-timeout 600000
yarn add -D esbuild@^0.19.5 esbuild-plugin-pino@^2.1.0 npm-dts@^1.3.12 esbuild-plugin-tsc@^0.4.0
working-directory: node_modules/@salesforce/core
- name: Update for bundling
run: node scripts/updateForBundling.js
working-directory: node_modules/@salesforce/core
- name: Generate Bundle
run: |
yarn build
cd ../../..
node scripts/build.js
working-directory: node_modules/@salesforce/core
- name: Post Bundling Update
run: |
node scripts/postBundlingUpdate.js
working-directory: node_modules/@salesforce/core
- name: Yarn deduplicate
run: |
npx yarn-deduplicate
yarn install --network-timeout 600000
- name: Retrieve Scripts
run: |
git clone https://github.com/forcedotcom/bundle-publish-scripts.git
- name: Update references for core bundle
run: |
node bundle-publish-scripts/scripts/updateForCoreBundle.js
- name: Run yarn install
uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main
- name: Remove scripts
run: rm -rf ./bundle-publish-scripts
- name: Update folder name
run: |
mv core core-bundle
working-directory: node_modules/@salesforce
- name: Build the external project (where the tests are)
run: yarn build
- name: Run tests with ${{ inputs.attempts }} attempts
Expand All @@ -70,6 +85,3 @@ jobs:
max_attempts: ${{ inputs.attempts }}
command: yarn test
retry_on: error
env:
SF_DISABLE_TELEMETRY: true
DEBUG: ${{ vars.DEBUG }}

0 comments on commit f8090f3

Please sign in to comment.