Skip to content

Commit

Permalink
Lint check powershell scripts in check-style workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thevindu-w committed Mar 2, 2025
1 parent 0a0c4ef commit 7373921
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/check-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,14 @@ jobs:
cpplint --linelength=120 --filter=-runtime/int,-runtime/arrays,-readability/casting,-legal/copyright \
--extensions=c,h,m,cc,hh,cpp,hpp,c++,h++,cxx,hxx --root=src --exclude='build/' --recursive .
- name: Check test script style
- name: Check shell script style
if: ${{ success() || failure() }}
run: find . -type f -name '*.sh' -print0 | xargs -0 shfmt -d -s -i 4 -ci

- name: Check powershell script style
if: ${{ success() || failure() }}
run: pwsh -Command 'Invoke-ScriptAnalyzer -EnableExit -Recurse -Path .'

- name: Format C code and bash scripts
if: ${{ (env.EVENT == 'push') && (success() || failure()) }}
run: |
Expand Down

0 comments on commit 7373921

Please sign in to comment.