The docs here state
You may use parameters as your conditions. The empty string will resolve as falsey in
when
conditions.
It seems then what I want to do is not possible, which is only run a branch of steps if the user supplies them:
test:
executor: v3_6
parameters:
steps:
type: steps
default: []
steps:
- checkout
- install_deps
- when:
condition: <<parameters.steps>>
steps:
- steps: <<parameters.steps>>
- unless:
condition: <<parameters.steps>>
steps:
- run: pipenv run pytest --junitxml=test-reports/pytest/junit.xml
- run: bash <(curl --silent https://codecov.io/bash)
- store_test_results:
path: test-reports
- store_artifacts:
path: test-report
Are conditions on lists possible?