NX build affected does not fail in GitHub workflow pipeline (but does locally)

153 views Asked by At

An NX/Angular project has a PR that passes build validation but it should not.

The command is running in Github workflow:

pnpm run nx affected --target=build --base=${{ env.NX_BASE }} --parallel=0 --maxParallel=1

Outputs: > NX Successfully ran target build for 43 projects

But locally the same fails and returns:

 >  NX   Ran target build for 43 projects

I'd expect the pipeline fail for this PR as Angular does not support TypeScript 5.2.2

What could be the root cause and how to make NX build to properly fail as expected?

0

There are 0 answers