My Workflow first (not worked):
workflows:
version: 2
build_and_tag:
jobs:
- build_staging:
filters:
branches:
only:
- /release.*/
- test_staging:
requires:
- build_staging
filters:
branches:
only:
- /release.*/
- deploy_staging:
requires:
- build_staging
filters:
branches:
only:
- master
After:
workflows:
version: 2
build_and_tag:
jobs:
- build_staging:
filters:
branches:
only:
- /release.*/
- test_staging:
requires:
- build_staging
filters:
branches:
only:
- /release.*/
deploy_staging:
jobs:
- deploy_staging:
filters:
branches:
only:
- master
Error on CircleCI:
We weren't able to start this workflow.
The following jobs are unreachable: deploy_staging
At least one job in the workflow must have no dependencies.
deploy_staging: requires job "test_staging" but "test_staging" is not part of this workflow.
For more examples see the Workflows documentation.