0
0
Selenium Javatesting~5 mins

GitHub Actions configuration in Selenium Java - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
A.yml
B.json
C.xml
D.sh
What keyword defines the steps inside a job in GitHub Actions?
Aactions
Bsteps
Cruns
Dcommands
To run Selenium Java tests on GitHub Actions, which runner is commonly used?
Aubuntu-latest
Bmacos-latest
Cwindows-latest
Dandroid-latest
How do you trigger a workflow when code is pushed to the main branch?
Aevent: push: main
Btrigger: push: branch: main
Con: push: branches: [main]
Don: commit: main
Which action sets up Java in a GitHub Actions workflow?
Aactions/java-setup
Bactions/install-java
Cactions/configure-java
Dactions/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.