Hello, I have a project which is a mono repo, and I intend to run pipelines based on the changes in specific directory. I am using circleci pathfiltering orb. but when I make these changes in one directory instead of workflow for that directory to run, it runs all the workflows . here is my config below;
am I doing something wrong? please I need help, if you need anymore information I will be happy to provide it.
this is my continue_config.yml
version: 2.1
parameters:
run-test2-workflow:
type: boolean
default: false
run-eiotc-workflow:
type: boolean
default: false
orbs:
sonarcloud: sonarsource/sonarcloud@1.0.3
snyk: snyk/snyk@1.4.0
jobs:
unit-test:
docker:
- image: ubuntu:20.04
steps:
- checkout
- run:
name: Pytest(unit-test)
command: |
echo "this is unit test for ingress"
engine_job:
docker:
- image: ubuntu:20.04
steps:
- run:
name: is this engine_job
command: |
echo "yes this is engine"
workflows:
run-eiotc-workflow:
when: << pipeline.parameters.run-eiotc-workflow >>
jobs:
- engine_job
run-test2-workflow:
when: << pipeline.parameters.run-test2-workflow >>]
jobs:
- unit-test
and this is my config.yml below;
version: 2.1
setup: true
orbs:
path-filtering: circleci/path-filtering@1.0.0
workflows:
setup-workflow:
jobs:
- path-filtering/filter:
base-revision: develop
config-path: .circleci/continue_config.yml
mapping: |
eiotc_api/.* run-eiotc-workflow true
test2/.* run-test2-workflow true
my directory structure below;
.circleci/
-config.yml
-continue_config.yml
eiotc_api/
- lots of directories and files
test2/
- text.txt