diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..35d26ab --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,15 @@ +name: Shell Script Check + +on: + pull_request: + branches: [main] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check bash syntax + run: bash -n *.sh + - name: Run ShellCheck + run: shellcheck -S error *.sh