elixir_git_hooks icon indicating copy to clipboard operation
elixir_git_hooks copied to clipboard

feature request: allow tasks to be configured to run in parallel

Open stocks29 opened this issue 2 years ago β€’ 1 comments

it would be awesome to allow tasks to be run in parallel to speed things up. perhaps something like:

config :git_hooks,
  hooks: [
    pre_commit: [
      tasks: [
        {:parallel, [
          {:serial, [
            {:mix_task, :format, ["--check-formatted"]},
            {:mix_task, :test},
          ]},
          {:serial, [
            {:cmd, "npm run lint-staged --prefix infrastructure"},
            {:cmd, "npm test --prefix infrastructure"}
          ]}
        ]}
      ]
    ]
  ]

stocks29 avatar Sep 12 '22 15:09 stocks29

Hey @stocks29 this is a great idea! ☺️

I have an open bug that currently has more priority when working on this project, a PR is welcome otherwise it will be next feature to implement πŸ™Œ

qgadrian avatar Sep 21 '22 17:09 qgadrian