diff options
author | James McCoy <jamessan@jamessan.com> | 2022-02-18 06:42:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-18 06:42:32 -0500 |
commit | ac480ef6b4ad4b4185cdc1f163288f46cef71352 (patch) | |
tree | 5f78fd3a6096b8eee34fc7e080c407cc2b6afe8c /ci/common/suite.sh | |
parent | 3fb9987eef2bad461ed2f2b8f3b249d84729dcd7 (diff) | |
parent | 8b92d71b300ef0e53b0e1b2992844dc74bd997c0 (diff) | |
download | rneovim-ac480ef6b4ad4b4185cdc1f163288f46cef71352.tar.gz rneovim-ac480ef6b4ad4b4185cdc1f163288f46cef71352.tar.bz2 rneovim-ac480ef6b4ad4b4185cdc1f163288f46cef71352.zip |
Merge pull request #17404 from dundargoc/ci/put-each-test-in-separate-step
ci: run each test suite in a separate github step
Diffstat (limited to 'ci/common/suite.sh')
-rw-r--r-- | ci/common/suite.sh | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/ci/common/suite.sh b/ci/common/suite.sh index f33f8b89d1..5110e22ec2 100644 --- a/ci/common/suite.sh +++ b/ci/common/suite.sh @@ -11,37 +11,17 @@ FAIL_SUMMARY="" END_MARKER="$BUILD_DIR/.tests_finished" FAIL_SUMMARY_FILE="$BUILD_DIR/.test_errors" -ci_fold() { - if test "$GITHUB_ACTIONS" = "true"; then - local action="$1" - local name="$2" - case "$action" in - start) - echo "::group::${name}" - ;; - end) - echo "::endgroup::" - ;; - *) - :;; - esac - fi -} - enter_suite() { FAILED=0 rm -f "${END_MARKER}" local suite_name="$1" export NVIM_TEST_CURRENT_SUITE="${NVIM_TEST_CURRENT_SUITE}/$suite_name" - ci_fold "start" "$suite_name" } exit_suite() { if test $FAILED -ne 0 ; then echo "Suite ${NVIM_TEST_CURRENT_SUITE} failed, summary:" echo "${FAIL_SUMMARY}" - else - ci_fold "end" "" fi export NVIM_TEST_CURRENT_SUITE="${NVIM_TEST_CURRENT_SUITE%/*}" FAILED=0 @@ -66,6 +46,11 @@ ended_successfully() { if test -f "${FAIL_SUMMARY_FILE}" ; then echo 'Test failed, complete summary:' cat "${FAIL_SUMMARY_FILE}" + + if [[ "$GITHUB_ACTIONS" == "true" ]]; then + rm -f "$FAIL_SUMMARY_FILE" + fi + return 1 fi if ! test -f "${END_MARKER}" ; then |