Define workflow, run, job, step, action and runner in one line each.
BeginnerConceptWorkflow Anatomy & Execution Model
Answer
- Workflow: a YAML file in
.github/workflows/that declares triggers and jobs. - Run: one execution of a workflow caused by one event (has a run ID and run attempts).
- Job: a set of steps that executes on one runner; jobs run in parallel unless linked by
needs. - Step: a single
runcommand or ausesaction inside a job, executed in order. - Action: a reusable unit defined by
action.yml(composite, JavaScript or Docker). - Runner: the machine (hosted VM, self-hosted host, or ARC pod) running the
actions/runneragent that executes jobs.
More on Workflow Anatomy & Execution Model
What is the minimum valid workflow file?BeginnerWhere must workflow files live, and does the file extension matter?BeginnerWhich version of the workflow file does GitHub use for a given run?IntermediateWhat does a GitHub-hosted runner give you at the start of a job?BeginnerShould you use `ubuntu-latest` or `ubuntu-24.04`?BeginnerWhat runner images and architectures can you choose from?Intermediate