Do the tests run and then the pipeline hangs? If that is the case, I bet it is because ng test
runs in watch mode and is always running looking for changes.
To fix it, change ng test
to ng test --watch=false --browsers=ChromeHeadless
.
I changed the browser to be headless Chrome as well (optional) and this should bring a slight increase in speed in your CI/CD
The flags can be found here.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…