Recall & Review
beginner
What is the purpose of a
workflow file in GitHub Actions?A workflow file defines automated steps that run on specific events in your GitHub repository, like code pushes or pull requests.
Click to reveal answer
beginner
In GitHub Actions, what does the
on keyword specify?The
on keyword specifies the event(s) that trigger the workflow, such as push, pull_request, or a schedule.Click to reveal answer
beginner
What is a
job in a GitHub Actions workflow?A job is a set of steps that execute on the same runner. Jobs can run sequentially or in parallel.
Click to reveal answer
intermediate
How do you specify the Java version in a GitHub Actions workflow for Selenium Java tests?
Use the
actions/setup-java action with the java-version input to specify the Java version.Click to reveal answer
beginner
Why is it important to use
runs-on in a GitHub Actions job?runs-on tells GitHub which type of machine (runner) to use for the job, like ubuntu-latest or windows-latest.Click to reveal answer
Which file extension is used for GitHub Actions workflow files?
✗ Incorrect
GitHub Actions workflows are defined in YAML files with the extension .yml or .yaml.
What keyword defines the steps inside a job in GitHub Actions?
✗ Incorrect
The keyword 'steps' lists the individual commands or actions to run inside a job.
To run Selenium Java tests on GitHub Actions, which runner is commonly used?
✗ Incorrect
Most Selenium Java tests run on 'ubuntu-latest' runner for compatibility and speed.
How do you trigger a workflow when code is pushed to the main branch?
✗ Incorrect
The correct syntax is 'on: push: branches: [main]' to trigger on pushes to main branch.
Which action sets up Java in a GitHub Actions workflow?
✗ Incorrect
The official action to set up Java is 'actions/setup-java'.
Describe the main parts of a GitHub Actions workflow file and their roles.
Think about what triggers the workflow, what runs, and where it runs.
You got /6 concepts.
Explain how you would configure a GitHub Actions workflow to run Selenium Java tests on every push to the main branch.
Focus on event, environment, Java setup, and test execution.
You got /4 concepts.