From d0a1e12825a25c2db49873ea79a072def2b20f71 Mon Sep 17 00:00:00 2001 From: Marco Franssen Date: Wed, 26 Apr 2023 11:41:12 +0200 Subject: [PATCH] Add workflow with shellcheck Signed-off-by: Marco Franssen --- .github/workflows/shellcheck.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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 0000000..1bed14c --- /dev/null +++ b/.github/workflows/shellcheck.yaml @@ -0,0 +1,30 @@ +name: Shellcheck + +on: + workflow_dispatch: + pull_request: + types: [synchronize, opened, reopened, edited] + paths: + - .github/workflows/shellcheck.yaml + - '**/*.sh' + +concurrency: + group: ${{ github.ref }}-shellcheck + cancel-in-progress: true + +env: + SHELLCHECK_VERSION: v0.9.0 + +jobs: + checks: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout + uses: actions/checkout@v3.5.2 + + - name: Run Shellcheck + uses: ludeeus/action-shellcheck@2.0.0 + with: + format: gcc + version: ${{ env.SHELLCHECK_VERSION }}