Skip to content

Commit

Permalink
fix(ci): fail integration-tests-passed when tests don't pass (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
programmer04 authored Nov 7, 2023
1 parent 34c766a commit 49919da
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49919da

Please sign in to comment.