I’m trying to write a Circle 2.0 config file for testing a repo on multiple PHP versions. I’ve seen an example of Workflows used for this, in Ruby: https://github.com/CircleCI-Public/circleci-demo-workflows/blob/parallel-jobs/.circleci/config.yml
The problem is, all the configuration steps are repeated for all the versions. This is fine here, as there are just 3 Ruby versions and only a few brief steps, but in my case the steps might be more, commands might be longer, and PHP versions will be more than 3. This means that if I chose this approach, my config file would become huge and hardly maintainable.
My question is: is there a way to define a set of shared steps which is then executed for every build? Or honestly, any other way of avoiding the repetition.