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 }}