ovotech / circleci-orbs

CircleCI Orbs
MIT License
52 stars 37 forks source link

optionally specify fmt-check step name #500

Closed mishabruml closed 1 year ago

mishabruml commented 1 year ago

https://github.com/ovotech/circleci-orbs/blob/c4634f4eaaba054ed99ecff0b34a9e63d89c477f/terraform-v2/orb.yml#L313

I'm using fmt-check like this

jobs:
  terraform_fmt:
    executor: terraform/default
    steps:
      - checkout
      - terraform/fmt-check:
          path: terraform/environments/non-production
          name: fmt non-production
      - terraform/fmt-check:
          path: terraform/environments/production
          name: fmt production

Which results in circleci looking like this image

If the name property could be specified, then the step names would be more meaningful. Perhaps they could default to a concat with the tf path? e.g. name: "terraform fmt ${*path}"