GH-900 · Question #68
You're reading a YAML workflow file in a GitHub repository and notice that it defines multiple jobs, each with several steps. Your team lead asks you to briefly explain how GitHub Actions workflows…
The correct answer is D. Workflows, jobs, steps, actions, and runnersright. GitHub Actions workflows consist of workflows, which define automation processes; jobs, which are tasks executed in parallel or sequentially; steps, which are individual commands within jobs; actions, which are reusable components performing specific tasks; and runners, which…
Question
You're reading a YAML workflow file in a GitHub repository and notice that it defines multiple jobs, each with several steps. Your team lead asks you to briefly explain how GitHub Actions workflows are structured. Which of the following best describes the main components that make up a GitHub Actions workflow?
Options
- APull requests, forks, and branches
- BIssues, discussions, and commits
- CWebhooks, gists, and notifications
- DWorkflows, jobs, steps, actions, and runnersright
How the community answered
(36 responses)- A3% (1)
- C3% (1)
- D94% (34)
Explanation
GitHub Actions workflows consist of workflows, which define automation processes; jobs, which are tasks executed in parallel or sequentially; steps, which are individual commands within jobs; actions, which are reusable components performing specific tasks; and runners, which are environments that execute workflows. This structured approach allows for efficient automation of builds, tests, and deployments. Option D is CORRECT because GitHub Actions is built from the following key components: Workflows - Automated processes triggered by events. Jobs - Group of steps that execute on the same runner. Steps - Individual commands or actions in a job. Actions - Reusable extensions that run complex tasks. Runners - Virtual machines or servers that execute jobs. https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions
Topics
Community Discussion
No community discussion yet for this question.