Quick answer

A valid CI config must define at least one job.

CI Config Missing Jobs

A valid CI config must define at least one job. In GitHub Actions, 'jobs' is required and must be a non-empty object; in GitLab CI, you need at least one job key (e.g. build, test).

Common causes

How to fix

FAQ

Can a GitHub Actions workflow have no jobs?
No. The 'jobs' key is required and must contain at least one job.

Fix it now

Try in validator (prefill this example)

Related

All tools · Canonical