What is GitHub Actions primarily used for?
Answer: c) Continuous integration and continuous delivery (CI/CD)
Which file format is used to define a GitHub Actions workflow?
Answer: c) YAML
Where do you store GitHub Actions workflow files in a repository?
.github/workflows./workflows.git/actions./actionsAnswer: a) .github/workflows
Which of the following is a key component of a GitHub Actions workflow?
Answer: d) All of the above
What does the on keyword specify in a GitHub Actions workflow?
Answer: b) The events that trigger the workflow
Which of the following can be used to trigger a GitHub Actions workflow?
pushpull_requestscheduleAnswer: d) All of the above
In a GitHub Actions workflow, what is a job?
Answer: a) A sequence of steps that execute on the same runner
What does the runs-on keyword define in a GitHub Actions workflow?
Answer: b) The type of runner to execute the job on
What is a runner in GitHub Actions?
Answer: a) A virtual machine or container that runs your workflows
How do you specify a specific branch for a workflow to run on?
on: [branch]branches: [branch]branch: [branch]on: push: branches: [branch]Answer: d) on: push: branches: [branch]
Which keyword is used to define an individual step within a job?
steptaskexecutestepsAnswer: d) steps
How do you reference a secret stored in GitHub Actions?
${{ secrets.NAME }}${{ secrets.NAME }}${{ secret.NAME }}${{ env.NAME }}Answer: a) ${{ secrets.NAME }}
What is the purpose of the uses keyword in a GitHub Actions workflow?
Answer: b) To specify an action to use
Which command would you use to checkout the code in a GitHub Actions workflow?
uses: actions/checkout@v2uses: github/checkout@v1run: git checkoutrun: actions/checkout@v2Answer: a) uses: actions/checkout@v2
How can you define a scheduled event in GitHub Actions?
on: cron:on: schedule:on: timer:on: interval:Answer: b) on: schedule:
Which of the following is NOT a valid GitHub Actions runner type?
What does the env keyword define in a GitHub Actions workflow?
Which command is used to set up Node.js in a GitHub Actions workflow?
Which keyword in a GitHub Actions workflow file is used to define the name of the workflow?
What is the purpose of the with keyword in GitHub Actions?