Speed Up CI/CD
Explore methods to speed up continuous integration and deployment by leveraging caching in GitHub workflows. Learn to configure caching for node_modules dependencies, conditionally skip steps, and optimize the CI CD process to achieve faster builds and deployments for cloud-native web applications.
We'll cover the following...
You have two GitHub workflows defined so far. For each new service, you will introduce a new workflow to truly keep services independent. It also helps you significantly speed up the CI/CD pipelines when only a single service has changed. When a pull request is merged to the master branch, the workflow files execute two jobs in sequence for a given service:
- test
- deploy
Both jobs start by installing the root NPM packages, and then all NPM packages for all services. When we work on a pull request and push changes frequently, that’s a lot of repetitive processing, and it takes roughly 5 minutes to run the entire workflow. As ...