Interview Prep/GitHub Actions/Jobs, Steps, Matrix & Concurrency

Can steps in one job run in parallel?

IntermediateConceptJobs, Steps, Matrix & Concurrency
Answer

No, steps are strictly sequential. For parallelism, split work into separate jobs (or a matrix), or run background processes inside one step and wait for them:

npm run test:unit & npm run test:lint & wait -n && wait -n

Jobs cost a runner start-up each (roughly 10 to 30 seconds on hosted runners plus setup like checkout and dependency restore), so do not split tiny tasks into separate jobs.

All GitHub Actions questions Roadmap: GitHub Actions

More on Jobs, Steps, Matrix & Concurrency