GitHub Actions "Error: Process completed with exit code 1"
A command in a run step exited non-zero, so the shell failed the step; exit code 1 is the generic "the command itself reported failure" status, not an infrastructure problem.
What this error means
A run step ends with "Error: Process completed with exit code 1." The real error is in the command output just above this line.
github-actions
npm ERR! Test failed. See above for more details.
Error: Process completed with exit code 1.Common causes
The command genuinely failed
Tests failed, a lint gate tripped, or a build error occurred, and the tool returned exit code 1.
pipefail surfacing an upstream failure
A piped command failed and set -o pipefail (the default in Actions bash) propagated the non-zero status.
How to fix it
Read the output above the exit line
- Scroll up to the actual error the tool printed.
- Reproduce the failing command locally with the same inputs.
- For pipelines, isolate which command in the pipe failed.
- Fix the underlying failure rather than masking the exit code.
Avoid hiding real failures
Do not append || true to silence a failing command unless the failure is truly non-fatal; that hides regressions.
How to prevent it
- Treat exit code 1 as a real signal, not noise.
- Keep step output readable so the cause is easy to find.
- Reserve || true for genuinely optional commands.
Related guides
GitHub Actions "Error: Process completed with exit code 137" (OOM)Fix GitHub Actions "Error: Process completed with exit code 137" - the process was SIGKILL'd, almost always b…
GitHub Actions "Error: Process completed with exit code 143" (SIGTERM)Fix GitHub Actions "Error: Process completed with exit code 143" - the process got SIGTERM (128 + 15), usuall…
GitHub Actions "The process '/usr/bin/git' failed with exit code 128"Fix GitHub Actions "The process '/usr/bin/git' failed with exit code 128" during checkout - auth, ref, or sub…