I was able to put the pipelines working, but right now I want to ignore some branches, best way would be to run the pipelines on develop branch only, here is my config.yml file:
version: 2.1
orbs:
node: circleci/node@1.1.6
jobs:
build:
filters:
branches:
only:
- develop
executor:
name: node/default
steps:
- checkout
- node/with-cache:
steps:
- run: yarn install
- run: yarn test
- run: yarn build
However my config is failing, how do I do it?
UPDATE:
Here is the error CircleCi is showing in the result:
ERROR IN CONFIG FILE:
[#/jobs/build] 0 subschemas matched instead of one
1. [#/jobs/build] only 1 subschema matches out of 2
| 1. [#/jobs/build] extraneous key [filters] is not permitted
| | Permitted keys:
| | - description
| | - parallelism
| | - macos
| | - resource_class
| | - docker
| | - steps
| | - working_directory
| | - machine
| | - environment
| | - executor
| | - shell
| | - parameters
| | Passed keys:
| | - filters
| | - executor
| | - steps
2. [#/jobs/build] expected type: String, found: Mapping
| Job may be a string reference to another job