Skip to content

Commit

Permalink
Backport of ci: add integration-tests summary job for required check …
Browse files Browse the repository at this point in the history
…into release/1.5.x (#556)

backport of commit 6c688a6

Co-authored-by: Michael Zalimeni <[email protected]>
  • Loading branch information
hc-github-team-consul-core and zalimeni authored Jun 12, 2024
1 parent 30dec63 commit 91b773c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -398,3 +398,17 @@ jobs:
- name: Check for failures
if: ${{ steps.run-tests.outcome != 'success' }}
run: exit 1

integration-tests-success:
needs:
- integration-tests
runs-on: ubuntu-latest
if: always()
steps:
- name: evaluate upstream job results
run: |
# exit 1 if failure or cancelled result for any upstream job
if printf '${{ toJSON(needs) }}' | grep -E -i '\"result\": \"(failure|cancelled)\"'; then
printf "Tests failed or workflow cancelled:\n\n${{ toJSON(needs) }}"
exit 1
fi

0 comments on commit 91b773c

Please sign in to comment.