From 3d2b0fa3fc2ebf512857ace02dbd411b62305a57 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Wed, 26 Apr 2023 15:03:31 -0400 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 0c06bf342..3257c29a0 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -15,6 +15,9 @@ jobs: - name: 🧪 Run tests run: npm run test:ci working-directory: backend + - name: Check if Jest tests failed + if: ${{ always() }} && ${{ steps.backend-test.outcome }} != 'success' + run: exit 1 - name: Save commit hashes for tag id: commit uses: pr-mpt/actions-commit-hash@v2