Skip to content

Commit

Permalink
Merge pull request #516 from tisnik/shellcheck-test
Browse files Browse the repository at this point in the history
Shell check on CI
  • Loading branch information
tisnik authored Oct 24, 2023
2 parents caf3817 + ab68ea1 commit e78b727
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/shellcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Shell check

on:
- push
- pull_request

jobs:
pytest:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Shell check
run: ./shellcheck.sh
4 changes: 2 additions & 2 deletions shellcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if ! command -v shellcheck > /dev/null 2>&1; then
scversion="stable" # or "v0.4.7", or "latest"
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv
shellcheck-stable/shellcheck --version
shellcheck-stable/shellcheck -- *.sh
shellcheck-stable/shellcheck --exclude=SC2230 -- *.sh
else
shellcheck -- *.sh
shellcheck --exclude=SC2230 -- *.sh
fi

0 comments on commit e78b727

Please sign in to comment.