Steps in parallel?

Is it possible to run given steps in parallel?

For example, we have a number of dependencies to build before we can build our component, and then test our component.

It would be nice if the dependency build steps could first run in parallel, followed by our component build step, and the test step.

12 Likes

Not at this moment. Only jobs can run in parallel, but steps always run sequentially.

I don’t know if there are any plans to ever support this.

1 Like

Hi, is this still the case that the steps within the job cannot run in parallel.

If that is the case, I wonder if there is any related documentation on best structuring the jobs to achieve the same goal (basically, turn the tasks into jobs) 

1 Like

If your steps are shell commands can you run them as a background task using the ‘&’ at the end of the command line.  You won’t be told when they finish.  I also don’t know if the workflow run will know to wait for the job to finish before it kills the instance.

If you REALLY need parallelism, remember that an action allows you to write code.  That code could trigger tasks in multiple threads.  Seems like a lot of work, but the ability should be there.