From 00f2bf1087c5eb5fd9c39bd521f94ffe9b76afcd Mon Sep 17 00:00:00 2001 From: Juan David Hurtado G Date: Sun, 8 Dec 2024 19:31:50 -0500 Subject: [PATCH] github: Adds shellcheck linting action for pull requests --- .github/workflows/shellcheck.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..b3f26bba --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,22 @@ +name: ShellCheck Linting + +on: + pull_request: + branches: + - main + +jobs: + lint: + name: Run ShellCheck + runs-on: macos-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Run ShellCheck + uses: ludeeus/action-shellcheckudeeus/action-shellcheck@2.0.0 + with: + scandir: "./usr/local/share/bastille" + additional_files: "./usr/local/bin/bastille" + ignore_paths: "./usr/local/share/bastille/templates"