diff --git a/.github/workflows/spartan-test.yml b/.github/workflows/spartan-test.yml index 902c032b647..6ed63e39900 100644 --- a/.github/workflows/spartan-test.yml +++ b/.github/workflows/spartan-test.yml @@ -111,7 +111,7 @@ jobs: run: | earthly-ci ./yarn-project+export-e2e-test-images - network-e2e: + test: needs: [build, changes] if: ${{ needs.changes.outputs.non-barretenberg-cpp == 'true' }} runs-on: ubuntu-20.04 @@ -145,7 +145,7 @@ jobs: success-check: runs-on: ubuntu-20.04 needs: - - build-and-test + - test if: always() steps: - name: Report overall success diff --git a/yarn-project/aztec/src/bin/index.ts b/yarn-project/aztec/src/bin/index.ts index 65d2e284239..158543eb80b 100644 --- a/yarn-project/aztec/src/bin/index.ts +++ b/yarn-project/aztec/src/bin/index.ts @@ -41,5 +41,7 @@ async function main() { main().catch(err => { debugLogger.error(`Error in command execution`); debugLogger.error(err + '\n' + err.stack); - process.exit(1); + // See https://nodejs.org/api/process.html#processexitcode + process.exitCode = 1; + throw err; });