From 709a685b3a8586b069a98c0338283a6bd2721005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20=C5=A0imko?= Date: Thu, 11 Jan 2024 17:40:49 +0100 Subject: [PATCH] ci(shellcheck): check all shell scripts recursively (#436) --- run-tests.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/run-tests.sh b/run-tests.sh index e69b5bd4..0019b187 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -9,18 +9,14 @@ set -o errexit set -o nounset -check_shellcheck () { - shellcheck run-tests.sh -} - check_commitlint () { from=${2:-master} to=${3:-HEAD} - npx commitlint --from="$from" --to="$to" --verbose + npx commitlint --from="$from" --to="$to" found=0 while IFS= read -r line; do if echo "$line" | grep -qP "\(\#[0-9]+\)$"; then - echo "✔ PR number present in $line" + true else echo "✖ PR number missing in $line" found=1 @@ -31,6 +27,10 @@ check_commitlint () { fi } +check_shellcheck () { + find . -name "*.sh" -exec shellcheck {} \; +} + check_pydocstyle () { pydocstyle reana_commons }