Skip to content

Commit

Permalink
Fail on failed tests (#218)
Browse files Browse the repository at this point in the history
Signed-off-by: Raphael Silva <[email protected]>
  • Loading branch information
rapphil authored Jul 17, 2024
1 parent 39a14b0 commit 4405a11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/scripts/integ-tests.sh
Original file line number Diff line number Diff line change
@@ -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)"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 4405a11

Please sign in to comment.