Job Dependency Enforcement
Splunk ☯️ Medium CI/CD
Beginner Mode

Start your terminal to use beginner mode.

Objective

A repository at /home/interview/repo has a workflow with three jobs (lint, test, build) that all run in parallel with no dependencies. The build job can execute even if lint or test fails.

Task

Update the workflow at .github/workflows/pipeline.yml to enforce a strict execution sequence: linttestbuild. The test job should depend on lint, and build should depend on test. If any job fails, the subsequent jobs should be skipped.

File Path

  • Workflow: /home/interview/repo/.github/workflows/pipeline.yml

Terminal requires a larger screen

Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.

Linux Terminal Environment

Write and execute your solution in the terminal below.

Sign In

Track

Question Difficulty Company Access
Need more practice in this area? Explore more questions →