From 4bf318ef48e4759369461ed4b21b7ff399d4f949 Mon Sep 17 00:00:00 2001 From: Srikanth Muppandam Date: Wed, 14 May 2025 23:22:03 +0530 Subject: [PATCH] ci: add ShellCheck workflow for shell script linting - Introduced a GitHub Actions workflow to run ShellCheck on all .sh files - Ensures shell scripts follow best practices and common standards - Helps catch syntax errors, quoting issues, and style problems early This improves code quality and enforces consistency in shell script contributions. Signed-off-by: Srikanth Muppandam --- .github/workflows/shellcheck.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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..9c84762 --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,15 @@ +name: Shell Lint + +on: [pull_request, push] + +jobs: + shellcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install ShellCheck + run: sudo apt-get install -y shellcheck + - name: Run ShellCheck + run: | + find . -name '*.sh' -exec shellcheck {} + +