Github action job doesn't fail on exit status 1

I have a Golang code that runs some integration tests. When it exits with status 1, the Github Actions job is still successful and continues running. Should it not fail the job? What determines if the job fails in Github Actions?

Here is the link to the code:

The issue turned out to be that I needed to obtain the last exit code from the calling application, which is PowerShell Core, and check the exit code and if it is non-zero, throw an error from that calling application in PowerShell core, otherwise Github Actions won’t register it as an error.