workflows:
version: 2
build_and_test:
jobs:
- build
- test:
requires:
- build
jobs:
build:
docker:
- image: circleci/node:4.8.2
steps:
- checkout
- run: echo "hello world"
test:
docker:
- image: circleci/node:4.8.2
steps:
- checkout
- run: echo "hello 2"
I was able to trigger a CircleCI project by V1 API token with the above request. However, only the “build” job is run by CircleCI, the “test” job was not run.
https://circleci.com/docs/2.0/api-job-trigger/
But in the above document it says
It is possible to trigger workflows with the CircleCI API: a singular workflow can be re-run, or you may trigger a pipeline which will run its subsequent workflows
What am I missing here?