From b2c9dc35f4234f027cafe951e6a96170b02b829c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Mon, 23 Sep 2024 17:58:54 +0200 Subject: [PATCH] CI: Add a bash linter to pre-submits Warns about shellcheck issues with severity `error`. --- .github/workflows/lint.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..6b218acbb --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,20 @@ +name: "Lint github actions" + +on: + push: + branches: + - master + +name: "Trigger: Push action" +permissions: {} + +jobs: + shellcheck: + name: Shellcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@master + with: + severity: error