Skip to content

Commit

Permalink
Add checkbashisms and shellcheck as part of CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zstyblik committed Jul 15, 2024
1 parent 9b2d32a commit 15398d1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ii_wrapper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: awalsh128/[email protected]
with:
packages: devscripts shellcheck
- name: Run checkbashisms
run: |
./ci/run-checkbashisms.sh
- name: Run shellcheck
run: |
./ci/run-shellcheck.sh
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
Expand Down
6 changes: 6 additions & 0 deletions ci/run-checkbashisms.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e
set -u

find . \( -name '*.sh' -or -name iibot-ng \) -print0 | \
xargs -0 -- checkbashisms --newline --force --lint --extra
6 changes: 6 additions & 0 deletions ci/run-shellcheck.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e
set -u

find . \( -name '*.sh' -or -name iibot-ng \) -print0 | \
xargs -0 -- shellcheck

0 comments on commit 15398d1

Please sign in to comment.