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