Skip to content

Commit c66af14

Browse files
committed
ci(shellcheck): check all shell scripts recursively (reanahub#119)
1 parent b87d9e9 commit c66af14

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (C) 2018, 2019, 2020, 2021, 2022, 2023 CERN.
3+
Copyright (C) 2018, 2019, 2020, 2021, 2022, 2023, 2024 CERN.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

run-tests.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,14 @@
99
set -o errexit
1010
set -o nounset
1111

12-
check_shellcheck () {
13-
shellcheck run-tests.sh
14-
}
15-
1612
check_commitlint () {
1713
from=${2:-master}
1814
to=${3:-HEAD}
19-
npx commitlint --from="$from" --to="$to" --verbose
15+
npx commitlint --from="$from" --to="$to"
2016
found=0
2117
while IFS= read -r line; do
2218
if echo "$line" | grep -qP "\(\#[0-9]+\)$"; then
23-
echo "✔ PR number present in $line"
19+
true
2420
else
2521
echo "✖ PR number missing in $line"
2622
found=1
@@ -31,6 +27,10 @@ check_commitlint () {
3127
fi
3228
}
3329

30+
check_shellcheck () {
31+
find . -name "*.sh" -exec shellcheck {} \;
32+
}
33+
3434
check_pydocstyle () {
3535
pydocstyle pytest_reana
3636
}

0 commit comments

Comments
 (0)