Docker and CI/CD · Junior · Question 50 of 75
What does caching dependencies in CI speed up?
- 1Tests, by skipping the ones that passed last time
- ✓Correct answer: Installs, by reusing downloaded packages between runs
- 3Deploys, by keeping the old version running
Explanation
The cache key usually includes a hash of the lockfile, so it's invalidated when dependencies change. actions/setup-node can do this with cache: npm.