From 83485c8cb61925883804655c9db0019418cf554b Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Thu, 25 Apr 2024 15:11:15 -0600 Subject: [PATCH] ci: add shellcheck for shell scripts --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7034139..50ccac4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,12 @@ jobs: - uses: actions/checkout@v4 - run: yamllint -f parsable . chmod: - name: Ensure .sh files have chmod +x + name: Check shell scripts runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: find . -name '*.sh' \! -executable | (! grep .) + - name: shellcheck + run: find . -name '*.sh' | xargs shellcheck -S warning + - name: Ensure .sh files have chmod +x + run: find . -name '*.sh' \! -executable | (! grep .)