From c9aaa506092b5eefa9c7382cb9982457c15d1ca3 Mon Sep 17 00:00:00 2001 From: Paul Barton <28630076+paulbarton90@users.noreply.github.com> Date: Wed, 8 Nov 2023 20:07:24 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20shellcheck=20for=20pre-com?= =?UTF-8?q?mit=20and=20ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/shellcheck.yml | 14 ++++++++++++++ .pre-commit-config.yaml | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/shellcheck.yml create mode 100644 .pre-commit-config.yaml diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 index 0000000..368fa15 --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,14 @@ +--- +name: shellcheck + +on: + - push + +jobs: + docker: + timeout-minutes: 10 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run shellcheck on gh-clean-notifications + run: shellcheck gh-clean-notifications diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..d564a32 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,7 @@ +--- +repos: + - repo: https://github.com/koalaman/shellcheck-precommit + rev: v0.9.0 + hooks: + - id: shellcheck + # args: ["--severity=warning"] # Optionally only show errors and warnings