Steps within a job run in order and share its workspace. A setup step can prepare files or dependencies for later commands. Each run step starts a new shell process, so changing a shell variable doesn't automatically update the next step. A failed command normally prevents later steps from running. Read the first failure, then fix the missing preparation instead of rearranging commands until the status looks green.
The browser runner evaluates a bounded model of the workflow. It doesn't start a hosted machine, contact GitHub or execute arbitrary shell programs. Use the event and run details to check the result. Saving valid YAML alone doesn't prove that the intended job ran.
Steps share one job workspace and run in order. Checkout supplies the repository before npm ci; npm test follows the install.