Overview:
You may run a workflow sequentially using the requires key. In this case, a downstream job will only run if all required jobs succeed. When using filters, if a job is not run due to branch or tag filters, it will not be required by downstream jobs.
For example, in the below config.yml
file the deploy job only requires the build job as the test job is never run due to branch filters:
workflows:
build_and_test:
jobs:
- build
- test:
filters:
branches:
only: master
- deploy:
requires:
- build
- test
Comments
Article is closed for comments.