I'm using the circleCI CLI locally to test my .circleci/config.yml
. This is what it looks like:
version: 2.1
jobs:
test:
docker:
- image: circleci/node:4.8.2
steps:
- checkout
- run: echo 'test step'
workflows:
version: 2
workflow:
jobs:
- test
This fails with the following error:
* Cannot find a job named
build
to run in thejobs:
section of your configuration file. If you expected a workflow to run, check your config contains a top-level key called 'workflows:'
The 'hello world' workflow from the CLI docs works fine.
What am I missing here?
circleci local execute --job JOB_NAME
worked for me. – Primacy