0
0
Selenium Javatesting~10 mins

GitHub Actions configuration in Selenium Java - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the name of the GitHub Actions workflow.

Selenium Java
name: [1]
Drag options to blanks, or click blank then click option'
Asteps
Brun
Cjobs
DJava Selenium Tests
Attempts:
3 left
💡 Hint
Common Mistakes
Using keywords like 'run' or 'jobs' instead of a name string.
Leaving the name blank.
2fill in blank
medium

Complete the code to specify the event that triggers the workflow on every push.

Selenium Java
on: [1]
Drag options to blanks, or click blank then click option'
Apush
Bpull_request
Cschedule
Dworkflow_dispatch
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pull_request' when the goal is to trigger on push.
Using 'schedule' which runs on a timer, not on push.
3fill in blank
hard

Fix the error in the job definition by completing the job ID.

Selenium Java
jobs:
  [1]:
    runs-on: ubuntu-latest
Drag options to blanks, or click blank then click option'
Abuild
Bruns-on
Cname
Dsteps
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'runs-on' as a job ID.
Using 'steps' or 'name' as job ID.
4fill in blank
hard

Fill both blanks to define a step that checks out the repository code.

Selenium Java
    steps:
      - name: Checkout code
        uses: [1]
        with:
          [2]: 'v3'
Drag options to blanks, or click blank then click option'
Aactions/checkout@v3
Bref
Cactions/setup-java@v3
Dversion
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'version' instead of 'ref' in the with block.
Using 'actions/setup-java@v3' instead of checkout action.
5fill in blank
hard

Fill all three blanks to define a step that sets up Java 17 and runs Maven tests.

Selenium Java
      - name: Setup Java
        uses: [1]
        with:
          java-version: '[2]'
      - name: Run tests
        run: [3]
Drag options to blanks, or click blank then click option'
Aactions/setup-java@v3
B17
Cmvn test
Dactions/checkout@v3
Attempts:
3 left
💡 Hint
Common Mistakes
Using the checkout action instead of setup-java for Java setup.
Using wrong Java version format.
Running wrong command instead of 'mvn test'.