Is there a way to test the workflow in local circleci2.0?


#1

is there a way to test the workflow in local circleci2.0?
Running the following file will execute just the build job

version: 2
jobs:
  build:
    working_directory: /src
    docker:
      - image: buildpack-deps:xenial
    steps:
      - checkout
      - run:
          name: pwd
          command: pwd
      - run:
          name: create file the test_build
          command: touch test_build
      - run:
          name: ls
          command: ls -la
      - persist_to_workspace:
          root: .
          paths:
            - .

  test:
    working_directory: /src
    docker:
      - image: buildpack-deps:xenial
    steps:
      - attach_workspace:
          at: .
      - run:
          name: date
          command: date
workflows:
  version: 2
  build_and_test:
    jobs:
      - build
      - test:
          requires:
            - build

#2

If you’re referring to the Local CLI, it does not yet support Workflows. https://circleci.com/docs/2.0/local-cli/#overview


#3

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.