Skip to content

Commit

Permalink
[gen_clib_pro] Updated githuub workflow actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vroncevic committed Dec 16, 2023
1 parent c816c4e commit f4b04c1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 34 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/gen_clib_pro_docker_checker.yml

This file was deleted.

22 changes: 10 additions & 12 deletions .github/workflows/gen_clib_pro_shell_checker.yml
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
4 changes: 2 additions & 2 deletions .github/workflows/gen_clib_pro_toc.yml
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

0 comments on commit f4b04c1

Please sign in to comment.