DevOps / Github Interview questions
Explain the execution flow of a GitHub Actions workflow from push to deployment?
When a developer pushes a commit, GitHub evaluates every workflow file under .github/workflows/ against the event, and any workflow whose on conditions match gets triggered as a new run.
Within a workflow, jobs run in parallel by default unless a needs relationship forces one job to wait for another, such as a deploy job that needs both build and test to succeed first. Artifacts produced by an early job (a compiled binary, a built image reference) can be uploaded and downloaded by a later job so work isn't repeated. The final result, success or failure, is reported back as a status check on the commit and any associated pull request, which is what required status checks use to gate merging.
More Related questions...