From d8e69724baabfb6fa2977e1f23ff842d8bbf2f50 Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Tue, 26 Nov 2024 13:07:35 -0500 Subject: [PATCH] check for exit code --- .github/workflows/test-backend.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test-backend.yml b/.github/workflows/test-backend.yml index ee67e05a..b1f11563 100644 --- a/.github/workflows/test-backend.yml +++ b/.github/workflows/test-backend.yml @@ -43,6 +43,9 @@ jobs: # run tests and capture output cd backend go test -v -coverprofile=coverage.out ./... + if [ $? -eq 1 ]; then + exit 1 + fi # - name: Generate coverage report # run: cd backend && go tool cover -html=coverage.out -o coverage.html # - name: Upload coverage report