CI/CD with GitHub Actions · 12-day planAll days
Day 4 of 12 30 mincheckoutsetup-nodeStatus checks
Build a real continuous integration pipeline for a Node.js app - check out the code, set up Node, install dependencies, lint, test and build - then watch how failures are reported, and make passing checks a requirement before anything can be merged.
By the end of today you can
- Build a CI workflow with checkout, setup-node, npm ci, lint, test and build
- Explain why every job must check out the repository first
- Read a failing test or lint error in the run log
- Use npm ci rather than npm install in CI
- Require checks to pass before merging with branch protection
What's inside
- 5 sections
- 3 diagrams and mind maps
- 2 code examples you can run
- 5-question quiz
- 1The workflow
- 2Forgetting checkout
- 3Reading failures
- 4Making CI required
- 5Other languages
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