Build not triggering


#1

Hello, new to CircleCI I am trying to do the following according to the docs :

  • run build and test on each branch
  • run stage only on master

Here is the workflow snippet :

workflows:
  version: 2
  build-n-deploy:
    jobs:
      - build
      - test:
          requires:
            - build
      - stage:
          requires:
            - test
          branches:
            only: master

According to the docs, if branches is not defined, it runs on every branch, but with this setup no builds run, if I remove the stage job, build/test runs everytime.


#2