From 4e96931434f95f96b9810244932ecdd192f43aea Mon Sep 17 00:00:00 2001 From: Nor Khasyatillah Date: Fri, 30 Aug 2024 09:30:14 +0700 Subject: [PATCH] CI: check shell scripts --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b379d28..c13cf3c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,6 +48,14 @@ jobs: run: | ls -A target/completions + - name: Check shell scripts + if: matrix.os == 'ubuntu-latest' + run: > + for file in scripts/*.sh; do; + [ -e "$file" ] || continue; + bash -n "$file"; + done + - name: Run lolcrab if: matrix.os != 'windows-latest' run: |