CI/CD with GitHub Actions · 12-day planAll days
Day 9 of 12 25 minCacheConcurrencypaths
Slow CI wastes everyone's time. Cache dependencies with setup-node and actions/cache, cancel outdated runs with concurrency, skip work with path filters, run independent jobs in parallel, and set timeouts so stuck jobs don't burn minutes.
By the end of today you can
- Cache npm dependencies with setup-node's cache option
- Use actions/cache with keys and restore-keys
- Cancel superseded runs with concurrency groups
- Skip unnecessary runs with path filters
- Protect against stuck jobs with timeout-minutes
What's inside
- 6 sections
- 2 diagrams and mind maps
- 2 code examples you can run
- 5-question quiz
- 1Caching dependencies
- 2actions/cache for anything
- 3Don't test the same thing twice
- 4Don't run at all
- 5Timeouts
- 6Where the time goes
Sign in free to read this lesson
Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.
Sign in free