0
0
Gitdevops~5 mins

GitHub Actions basics - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is GitHub Actions?
GitHub Actions is a tool that helps you automate tasks in your software projects, like testing code or deploying apps, by running scripts when certain events happen.
Click to reveal answer
beginner
What file defines a GitHub Actions workflow?
A workflow is defined in a YAML file located in the .github/workflows/ folder of your repository.
Click to reveal answer
beginner
What triggers can start a GitHub Actions workflow?
Workflows can start on events like pushing code, opening a pull request, or on a schedule.
Click to reveal answer
beginner
What is a job in GitHub Actions?
A job is a set of steps that run on the same machine. Jobs can run sequentially or at the same time.
Click to reveal answer
beginner
How do you specify the operating system for a job in GitHub Actions?
You use the runs-on key in the job to choose the OS, like ubuntu-latest or windows-latest.
Click to reveal answer
Where do you place the workflow YAML files in a GitHub repository?
Aroot/
B.github/workflows/
Csrc/workflows/
Ddocs/
Which event can trigger a GitHub Actions workflow?
Apush
Bemail received
Cfile downloaded
Dscreen unlocked
What does the runs-on key specify in a job?
AThe repository branch
BThe programming language used
CThe operating system where the job runs
DThe user who runs the job
What is a step in a GitHub Actions job?
AA single task or command executed in the job
BA branch in the repository
CA user who approves the workflow
DA file in the repo
Can multiple jobs in a workflow run at the same time?
AOnly if triggered by different events
BNo, jobs always run one after another
COnly if they use the same OS
DYes, jobs can run in parallel
Explain how a GitHub Actions workflow is structured and triggered.
Think about where the file lives, what starts it, and what it contains.
You got /4 concepts.
    Describe the difference between a job and a step in GitHub Actions.
    Consider how tasks are grouped and executed.
    You got /4 concepts.