From 6e7dc936a4999fb71d02eabd3751265c4ff8ad60 Mon Sep 17 00:00:00 2001 From: Raphael Silva Date: Wed, 17 Jul 2024 21:27:41 +0000 Subject: [PATCH] Fail on failed tests Signed-off-by: Raphael Silva --- .github/scripts/integ-tests.sh | 5 ++++- .github/workflows/CI.yaml | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/scripts/integ-tests.sh b/.github/scripts/integ-tests.sh index fc0529e..bec513d 100755 --- a/.github/scripts/integ-tests.sh +++ b/.github/scripts/integ-tests.sh @@ -1,4 +1,7 @@ -#!/bin/sh +#!/bin/sh + +# Fail if any of the steps fail +set -e IMAGE=$1 CONTAINER_NAME="integ-test-$(date +%s)" diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 1dfc4ff..5dd0119 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -89,4 +89,6 @@ jobs: registry: ${{ env.STAGING_ECR_REGISTRY }} - name: Run integration tests - run: ./.github/scripts/integ-tests.sh ${{ env.STAGING_ECR_REGISTRY }}/${{ env.STAGING_ECR_REPOSITORY }}:${{ needs.build.outputs.commit-short-sha }} + run: | + set -e + ./.github/scripts/integ-tests.sh ${{ env.STAGING_ECR_REGISTRY }}/${{ env.STAGING_ECR_REPOSITORY }}:${{ needs.build.outputs.commit-short-sha }}