function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jesus Martinez 29Jesus Martinez 29 

Need Help Speeding Up Package Installations in GitHub Actions

We're facing a challenge with our GitHub Actions CI setup, and we could use your insights to make it snappier.

Background: We recently updated to the latest Salesforce CLI version because of an installation error. But, since the switch, our CI pipeline has slowed down significantly.

The Issues:
  • Slow Package Installs: They used to be quick, but now they're taking forever.
  • Sluggish Scratch Org Creation: Creating scratch orgs isn't as snappy as it used to be.
  • Laggy Test Execution: Running tests inside scratch orgs has become a waiting game.
What We're Looking For:
  • Any tips or tricks you've used to speed up operations with the latest Salesforce CLI.
  • Have you dealt with similar slowdowns? How did you tackle them?
  • Are there ways to identify what's causing these slowdowns?
Our Setup:
  • GitHub Actions for CI/CD.
  • Running the latest Salesforce CLI.
  • Using Salesforce packages for dependencies.
Any help, advice, or shared experiences are much appreciated.
HarshHarsh (Salesforce Developers) 
Hi Jesus,
Please refer to the following Salesforce article for more 
https://developer.salesforce.com/blogs/2020/01/using-salesforce-dx-with-github-actions

For more reference follow the below link.
https://www.salesforceben.com/build-your-own-ci-cd-pipeline-in-salesforce-using-github-actions/ 

Please mark it as Best Answer if the above information was helpful.

Thanks.