-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from anavarre/shellcheck
Add Shellcheck support via GitHub Actions
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Run ShellCheck | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' # Run on all branches | ||
pull_request: | ||
branches: | ||
- '*' # Run on all branches | ||
|
||
jobs: | ||
shellcheck: | ||
name: Run ShellCheck | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install ShellCheck | ||
run: sudo apt-get install -y shellcheck | ||
|
||
- name: Run ShellCheck | ||
run: | | ||
# Find all shell scripts and run shellcheck | ||
find . -name "*.sh" -print0 | xargs -0 shellcheck | ||