Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

circleci config validate does not check that jobs listed in a workflow are defined #11

Closed
marcomorain opened this issue Jul 2, 2018 · 2 comments

Comments

@marcomorain
Copy link
Contributor

When a job is listed in a workflow but missing from the jobs section, the config validator will report the config as valid but will fail immediately when pushed to CircleCI:

* Cannot find a job named `build` to run in the `jobs:` section of your configuration file.

The validator should ensure that all jobs listed in workflows are actually defined.

CircleCI-Archived/local-cli#20 (comment)

cc @federicobond

@marcomorain
Copy link
Contributor Author

version: 2.1
jobs:
  foo:
    machine: true
    steps: 
      - checkout

workflows:
  workflow:
    jobs:
      - foo
      - bar

$ circleci config validate
Error: Error calling workflow: 'workflow': Cannot find a definition for job named bar

@marcomorain
Copy link
Contributor Author

This is now fixed 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant