Skip to content

Commit

Permalink
ci(shellcheck): check all shell scripts recursively (reanahub#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborsimko committed Jan 12, 2024
1 parent 687f2f4 commit 709a685
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -31,6 +27,10 @@ check_commitlint () {
fi
}

check_shellcheck () {
find . -name "*.sh" -exec shellcheck {} \;
}

check_pydocstyle () {
pydocstyle reana_commons
}
Expand Down

0 comments on commit 709a685

Please sign in to comment.