From a71f9cde2e7c05e1605dcd1e8273d0f2d7d7b9ae Mon Sep 17 00:00:00 2001 From: Jakub Warczarek Date: Tue, 7 Nov 2023 11:57:46 +0100 Subject: [PATCH] fix(ci): fail integration-tests-passed when tests don't pass --- .github/workflows/tests.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index a74278d6..01135590 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -150,11 +150,13 @@ jobs: integration-tests-passed: needs: integration-tests - if: always() && !contains(needs.*.result, 'failure') + if: always() runs-on: ubuntu-latest steps: - - name: integrations tests pased - run: echo all integrations tests passed + - if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') + run: | + echo "Some jobs failed or were cancelled." + exit 1 setup-e2e-tests: runs-on: ubuntu-latest