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.
More on Jobs, Steps, Matrix & Concurrency
How does `needs` work, and what happens to a job whose dependency failed or was skipped?BeginnerWhat is the implicit `success()` in a job `if`, and why is `always()` usually the wrong fix?IntermediateWhat values can `needs.<job>.result` take?BeginnerHow does a matrix expand, and how are job names generated?BeginnerHow do `include` and `exclude` work in a matrix?IntermediateWhat do `fail-fast` and `max-parallel` do?Beginner