From 7dde7b74f546e6ebd79a3eb63552a5e848f17ca0 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 a74278d61..01135590a 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