diff --git a/.github/workflows/testExternalProjects.yml b/.github/workflows/testExternalProjects.yml index e36909342..d82495d31 100644 --- a/.github/workflows/testExternalProjects.yml +++ b/.github/workflows/testExternalProjects.yml @@ -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 @@ -70,6 +85,3 @@ jobs: max_attempts: ${{ inputs.attempts }} command: yarn test retry_on: error - env: - SF_DISABLE_TELEMETRY: true - DEBUG: ${{ vars.DEBUG }}