From 102cb1a0b9c9ac88ee7634094bb767c0312c564d Mon Sep 17 00:00:00 2001 From: Aurelien Navarre Date: Mon, 10 Jun 2024 14:12:36 +0200 Subject: [PATCH] Add Shellcheck support via GitHub Actions --- .github/workflows/shellcheck.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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 00000000..2abc731a --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,27 @@ +name: Run ShellCheck + +on: + push: + branches: + - '*' # Run on all branches + pull_request: + branches: + - '*' # Run on all branches + +jobs: + shellcheck: + name: Run ShellCheck + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install ShellCheck + run: sudo apt-get install -y shellcheck + + - name: Run ShellCheck + run: | + # Find all shell scripts and run shellcheck + find . -name "*.sh" -print0 | xargs -0 shellcheck +