From fdb14fc19c6dd1f35e033dad7003929a50cdb048 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Thu, 15 Oct 2020 13:07:01 +0200 Subject: [PATCH] Print environment variables before running linters --- lib/linter.sh | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/lib/linter.sh b/lib/linter.sh index b667123a..bc8f7bd4 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -1189,6 +1189,16 @@ if [[ ${TEST_CASE_RUN} != "false" ]]; then ############################################# MULTI_STATUS='false' + ####################################### + # Print ENV before running test cases # + ####################################### + debug "--- ENV (before running test cases) ---" + debug "---------------------------------------" + PRINTENV=$(printenv | sort) + debug "ENV:" + debug "${PRINTENV}" + debug "---------------------------------------" + ########################### # Run only the test cases # ########################### @@ -1206,15 +1216,15 @@ BuildFileList "${VALIDATE_ALL_CODEBASE}" ############### EDITORCONFIG_FILE_PATH="${GITHUB_WORKSPACE}"/.editorconfig -################################################## -# Print ENV before running linters or test cases # -################################################## - debug "--- ENV (before running linters or test cases) ---" - debug "--------------------------------------------------" - PRINTENV=$(printenv | sort) - debug "ENV:" - debug "${PRINTENV}" - debug "---------------------------------------------" +#################################### +# Print ENV before running linters # +#################################### +debug "--- ENV (before running linters) ---" +debug "------------------------------------" +PRINTENV=$(printenv | sort) +debug "ENV:" +debug "${PRINTENV}" +debug "------------------------------------" for LANGUAGE in "${LANGUAGE_ARRAY[@]}"; do debug "Running linter for the ${LANGUAGE} language..."