Skip to content

Commit

Permalink
CI: check each individual file in a new shellcheck instance
Browse files Browse the repository at this point in the history
shellcheck runs very slow when operating on many files at once and has the a high potential to hang on some systems when doing so.
  • Loading branch information
theofficialgman committed Jan 20, 2025
1 parent 596870d commit 1fa28fe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ jobs:
run: |
cd $GITHUB_WORKSPACE
sudo apt install shellcheck wget -y
if ! shellcheck api createapp gui install manage preload settings uninstall updater etc/preload-daemon etc/runonce-entries etc/terminal-run apps/*/install apps/*/install-32 apps/*/install-64 apps/*/uninstall --color=always | sed '0,/'$(echo -e "\033")'\[31m/!{q1}' ;then
exit 1
fi
for file in api createapp gui install manage preload settings uninstall updater etc/preload-daemon etc/runonce-entries etc/terminal-run apps/*/install apps/*/install-32 apps/*/install-64 apps/*/uninstall; do
if ! shellcheck "$file" --color=always | sed '0,/'$(echo -e "\033")'\[31m/!{q1}' ; then
exit 1
fi
done

0 comments on commit 1fa28fe

Please sign in to comment.