Skip to content

Should I use jobs or steps for running different tools? #26587

Answered by otter-computer
aahnik asked this question in Actions
Discussion options

You must be logged in to vote

It depends on your code/workflow really. Jobs run isolated from each other so there’s no easy way for them to interact, meaning that if your testing tools rely on the output from each other then it will likely not be a good fit.

Jobs do run in parallel though, so if your tests take a long time to complete then this may speed up your workflow overall. Be aware that this means you’ll need to checkout a fresh copy of your repository code on each job, along with setting up and installing any required dependencies, so this may end up taking longer.

If it’s just a small project then simpler is usually better so I’d recommend a single job with multiple steps.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants