Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stocks29 opened this issue Sep 12, 2022 · 1 comment
Open

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

stocks29 opened this issue Sep 12, 2022 · 1 comment

Comments

@stocks29
Copy link

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"}
          ]}
        ]}
      ]
    ]
  ]
@qgadrian
Copy link
Owner

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 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants