Bird
0
0

Which YAML key is used to specify the event that triggers a GitHub Actions workflow for Cypress tests?

easy📝 Syntax Q12 of 15
Cypress - CI/CD and Reporting
Which YAML key is used to specify the event that triggers a GitHub Actions workflow for Cypress tests?
Ajobs
Brun
Csteps
Don
Step-by-Step Solution
Solution:
  1. Step 1: Identify trigger key in GitHub Actions YAML

    The on key defines events like push or pull_request that start the workflow.
  2. Step 2: Differentiate from other keys

    run is used inside steps, steps lists commands, jobs groups tasks.
  3. Final Answer:

    on -> Option D
  4. Quick Check:

    Trigger event key = on [OK]
Quick Trick: Triggers use 'on' key in GitHub Actions YAML [OK]
Common Mistakes:
  • Confusing 'run' with trigger event
  • Mixing 'steps' with event triggers
  • Using 'jobs' as trigger key

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Cypress Quizzes