diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,21 @@ +name: ShellCheck + +on: + push: + branches: [master] + +jobs: + shellcheck: + name: ShellCheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install ShellCheck + run: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get install -y shellcheck + + - name: Set globstar + run: shopt -s globstar + + - name: Run ShellCheck + run: shellcheck -x -P SCRIPTDIR **/*.sh