needs

The job key that makes a job wait until the jobs it names have finished successfully.

In more detail

Each needs entry is an edge in a graph of jobs, so jobs without needs run at the same time and a job with needs runs after its dependencies. A job may read the outputs of the jobs it needs through the needs context.

Example

package:
  needs: [test, lint]

Related terms

Taught in

References

Certification courses