-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gen_clib_pro] Updated githuub workflow actions
- Loading branch information
Showing
3 changed files
with
12 additions
and
34 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
name: gen_clib_pro shell checker | ||
name: gen_clib_pro_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@v2 | ||
- name: Check syntax script | ||
id: syntax_checker | ||
run: | | ||
bash -n sh_tool/bin/gen_clib_pro.sh && echo ::set-output name=status::success || echo ::set-output name=status::failure | ||
- uses: actions/checkout@v4 | ||
- name: Check size script | ||
id: size_checker | ||
run: | | ||
echo Checking size | ||
code_line_number=$(wc -l < sh_tool/bin/gen_clib_pro.sh) | ||
[[ $code_line_number -gt 300 ]] && echo ::set-output name=status::failure || echo ::set-output name=status::success | ||
- name: Check on failures | ||
if: steps.syntax_checker.outputs.status == 'failure' || steps.size_checker.outputs.status == 'failure' | ||
run: exit 1 | ||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: gen_clib_pro toc | ||
name: gen_clib_pro_toc | ||
on: push | ||
jobs: | ||
generateTOC: | ||
name: TOC Generator | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: technote-space/toc-generator@v2 | ||
- uses: technote-space/toc-generator@v4 |