[sh_util] Updated code coverage, docs #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: sh_util_shell_checker | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'sh_tool/**' | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'sh_tool/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check size script | |
id: size_checker | |
run: | | |
modules_ok=0 | |
modules=($(find sh_tool/ -type f -name '*.sh' -exec echo '{}' \;)) | |
for mod in "${modules[@]}"; do line_numbers=$(wc -l < "${mod}"); [[ $line_numbers -gt 300 ]] && modules_ok=1; done | |
[[ $modules_ok -eq 0 ]] && echo ok || exit 1 |