Skip to content

Commit

Permalink
fail e2e action if run_tests had an error (#146)
Browse files Browse the repository at this point in the history
* fail e2e action if run_tests had an error

* fail test

* Revert "fail test"

This reverts commit e0d3b23.
  • Loading branch information
bakito committed May 12, 2023
1 parent 211c4fc commit 4f2fd7c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
./testdata/e2e/installSealedSecretsWebChart.sh json http://sealed-secrets.sealed-secrets.svc:8080/v1/cert.pem
- name: Run Tests
id: run_tests
# continue on error to show logs
continue-on-error: true
working-directory: testdata/e2e
run: ./runTests.sh
Expand All @@ -49,3 +51,9 @@ jobs:
echo '```' >> $GITHUB_STEP_SUMMARY
kubectl logs -n sealed-secrets-web -l app.kubernetes.io/instance=sealed-secrets-web >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
- name: Fail if 'Run Tests' failed
if: steps.run_tests.outcome=='failure'
run: |
echo "Step 'Run Tests' failed: Check 'Run Tests' and 'Print logs' for errors"
exit 1

0 comments on commit 4f2fd7c

Please sign in to comment.