I am trying to test and build for multiple operating systems and so I use a matrix that looks something like this
workflows:
all-tests:
jobs:
- test:
matrix:
parameters:
os: [linux, macos, windows]
Where os is an executor.
jobs:
test:
parameters:
os:
type: executor
But for each one I want to do conditional setup steps based on the executor type and I couldn’t find a way to do that.
I tried:
condition:
equal: [ macos, << parameters.os >> ]
but the condition is never true as << paramaters.os >> seems to be converted into an executor object string and so it is not the same as macos even when the executor type is called macos.
How can I achieve something like this?
Thanks!