Config does not conform to schema (map? a-clojure.lang.LazySeq)

Hi,

I’m trying to make my CI builds pass, but I keep getting the error: “Config does not conform to schema: {:workflows {:build {:jobs [{:build-staging (not (map? a-clojure.lang.LazySeq))}]}}}”.

I’m trying to run a bash script after pushing my code to my develop branch on Github. Here’s my code:

 version: 2
 jobs:
    build-staging:
      docker:
        - image: circleci/node:latest
      steps:
        - checkout
        - run: chmod +x bin/deploy.sh
        - run: bin/deploy.sh staging

 workflows:
    version: 2
    build:
      jobs:
        - build-staging:
          - filters:
            branches:
              only:
                - develop

This is a syntax error. Filters does not require a - it should look more like this:

 workflows:
    version: 2
    build:
      jobs:
        - build-staging:
            filters:
              branches:
                only: develop

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