100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace
CI/CD with GitHub Actions
35 minintermediate

GitHub Actions — Workflows, Jobs and Runners

GitHub Actions is a native automation platform built directly into GitHub, eliminating the need for separate CI servers like Jenkins or CircleCI and the operational overhead of maintaining them. Rather than configuring an external service and granting it repository access, you describe automation as YAML files stored inside `.github/workflows/` — your pipeline lives alongside your code, is versioned with it, and is reviewed in the same pull requests. This co-location matters: pipeline changes and code changes are atomic, so you can never have a situation where production code is ahead of its pipeline definition. Understanding the three-tier hierarchy of GitHub Actions — workflows, jobs, and steps — is essential before writing any automation, because the structural choices you make here directly determine how fast, how reliable, and how maintainable your pipelines will be as the project grows.

Analogy🏏Cricket
🏏 Think of it like cricket: A cricket series is structured in three tiers: the series schedule (which matches are played and when), individual match plans (batting order, bowling rotations, fielding strategy), and specific delivery plans (which balls to bowl to which batsman in which over). The series schedule is the workflow — it defines the overall event. Each match is a job — it runs independently but contributes to the series outcome. Each delivery plan is a step — a specific action with a discrete result. Just as a Test captain doesn't redesign the series schedule for every match but does adjust the bowling plan for each innings, GitHub Actions separates what triggers the automation (workflow) from how independent tasks are parallelised (jobs) from the individual commands executed (steps). The insight is that this separation of concerns is what allows large, complex pipelines to remain manageable — just as a well-structured series plan keeps a touring team organised across multiple venues and formats.
Lesson 2 of 24
0% complete