diff --git a/.github/workflows/lint-install.yml b/.github/workflows/lint-install.yml new file mode 100644 index 00000000..ffe29953 --- /dev/null +++ b/.github/workflows/lint-install.yml @@ -0,0 +1,27 @@ +name: Lint install script + +on: + push: + paths: + - 'install.sh' + - '.github/workflows/lint-install.yml' + pull_request: + paths: + - 'install.sh' + - '.github/workflows/lint-install.yml' + +permissions: + contents: read + +jobs: + shellcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + - name: Check bash syntax + run: bash -n install.sh + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@00b27aa7cb85167568cb48a3838b75f4265f2bca + with: + scandir: '.' + version: v0.11.0