Skip to content

Commit

Permalink
Ensure all kubernetes tests are executed rather than just fail-first
Browse files Browse the repository at this point in the history
* Provides coverage of all failing tests not just the tests up to the
  failed test.
  • Loading branch information
phantomjinx committed Jan 5, 2022
1 parent 293a8d6 commit 53e92b6
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/actions/e2e-kubernetes/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,17 @@ runs:
export CAMEL_K_TEST_IMAGE_VERSION=${CUSTOM_VERSION}
export CAMEL_K_TEST_SAVE_FAILED_TEST_NAMESPACE=${{ env.CAMEL_K_TEST_SAVE_FAILED_TEST_NAMESPACE }}
# Then run integration tests
make test-integration
make test-service-binding
make test-quarkus-native
make test-kustomize
# Then run all integration tests rather than ending on first failure
set -e
exit_code=0
make test-integration || exit_code=1
make test-service-binding || exit_code=1
make test-quarkus-native || exit_code=1
make test-kustomize || exit_code=1
set +e
echo "Tests completed with exit code: ${exit_code}"
exit ${exit_code}
- name: Cleanup
uses: ./.github/actions/kamel-cleanup
Expand Down

0 comments on commit 53e92b6

Please # to comment.