From b231a795d70971a150f99afa3efaf2f36becc752 Mon Sep 17 00:00:00 2001 From: Zvonko Kaiser Date: Thu, 30 Jan 2025 03:39:24 +0000 Subject: [PATCH] gha: Add shellcheck We need to start to fix our scripts. Lets run shellcheck and see what needs to be reworked. Signed-off-by: Zvonko Kaiser --- .github/workflows/shellcheck.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/shellcheck.yaml diff --git a/.github/workflows/shellcheck.yaml b/.github/workflows/shellcheck.yaml new file mode 100644 index 0000000000..1f058e1393 --- /dev/null +++ b/.github/workflows/shellcheck.yaml @@ -0,0 +1,29 @@ +# https://github.com/marketplace/actions/shellcheck +name: Check shell scripts + +on: + workflow_dispatch: + pull_request: + types: + - opened + - edited + - reopened + - synchronize + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + shellcheck: + runs-on: ubuntu-24.04 + steps: + - name: Checkout the code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/checkout@v4 + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@master +