Execution order for multiple workflows in one repo #26271
-
I wonder what is the order of multiple workflows in one repo. Is it possible to run them in parallel? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
They may get run in parallel, yes, but there’s no guarantee. It mostly depends on how full the queue is, assuming you’re not hitting the limits for parallel jobs. |
Beta Was this translation helpful? Give feedback.
-
Hi @dahuokolmostar, Every workflow needs an event trigger defined in the yaml file, if your operation triggers the event, the workflow will be started, they can be in parallel. Thanks |
Beta Was this translation helpful? Give feedback.
-
Is it possible to require the workflows to run in a predetermined order (not in parallel)? |
Beta Was this translation helpful? Give feedback.
-
This is also of interest to me. I have a monorepo with multiple sub-modules, and use multiple workflow Same problem mentioned at Monorepo – test package then test integration with all packages (without solution), and the solution mentioned at Basic workflow structure for a monorepo - #5 by weide-zhou looks awfully complicated (it has to parse the diff on its own, which completely defeats the purpose of path filters). This lets me think that monorepos are not first class citizens in GitHub. |
Beta Was this translation helpful? Give feedback.
Hi @dahuokolmostar,
Every workflow needs an event trigger defined in the yaml file, if your operation triggers the event, the workflow will be started, they can be in parallel.
For example, push events in two yaml files on master branch, if you push commit to master branch, both workflows will be started.
But you still need to be aware of the usage limit, specially cocurrent jobs, please refer to the official doc for more details:
https://help.github.com/en/actions/getting-started-with-github-actions/about-github-actions#usage-limits.
Thanks