-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add ci shellcheck * fix: run on scripts change * test: if ci shellcheck would run * chore: pin the shellcheck version * test: shellckeck * fix: add manual workflow execution * fix: runner * pin: 22.04 * chore: run always in PR if some script is changed * fix: review * fix: shellcheck
- Loading branch information
Showing
3 changed files
with
53 additions
and
23 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
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,26 @@ | ||
--- # Workflow to run shellckeck on all shell scripts | ||
|
||
name: Shellcheck | ||
on: | ||
pull_request: | ||
paths: | ||
- '**/*.sh' | ||
- 'scripts/**' | ||
workflow_dispatch: | ||
branches: | ||
- "**" | ||
|
||
jobs: | ||
shellcheck_scripts: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install shellcheck | ||
run: sudo apt-get install shellcheck=0.8.0-2 | ||
|
||
- name: Run shellcheck | ||
run: | | ||
cd scripts | ||
shellcheck ./*.sh |
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