Skip to content

Commit 823f4c6

Browse files
[ci] move shellcheck on test-plugins.sh outside test-plugins.sh
It improves reusability of this script
1 parent 04556cf commit 823f4c6

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v2
1212

13+
- name: Lint test script
14+
run: shellcheck ./tests/test-plugins.sh
15+
1316
- name: Run test script
1417
run: ./tests/test-plugins.sh

tests/test-plugins.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ run_invalid_command() {
2727
fi
2828
}
2929

30-
echo -e "\033[1mTesting $0...\033[0m"
31-
printf "%-60s" " - lint script"
32-
run_valid_command shellcheck "$(readlink -f "$0")"
33-
echo
34-
3530
while IFS= read -r -d '' plugin; do
3631
name="$(basename "$plugin")"
3732
echo -e "\033[1mTesting plugin $name...\033[0m"

0 commit comments

Comments
 (0)