title: CircleCI config.yml for nodejs
body: <pre><code>version: 2
    jobs:
      test:
        docker:
          - image: circleci/node:12.16
        steps:
          - checkout
          - run: echo &quot;Running tests&quot;
          - run: npm install
          - run: npm test
        build:
          docker:
            - image: circleci/node:12.16
          steps:
            - checkout
            - run: echo &quot;build project&quot;
            - npm install
            - npm run build
  workflows:
    version: 2
      test_build:
        jobs:
          - test
          - build:
            requires:
              - test
  </code></pre>
  <p>The above YAML is my config.yml for CircleCI, but I get this error</p>
  <pre><code>Config does not conform to schema: {:workflows {:test_and_build {:jobs [nil {:build (not (map? nil)), :requires (not (map? a-clojure.lang.LazySeq))}]}}}
  </code></pre>
  <p>Another observation is if I run the jobs in parallel, they run without any errors.
  That is if I remove the requires: - test as shown below</p>
  <pre><code>workflows:
    version: 2
      test_build:
        jobs:
          - test
          - build
  </code></pre>