From 8d70db5d3c9227924bc02143608e94bf34e9c31e Mon Sep 17 00:00:00 2001 From: ZoopaMario Date: Sat, 28 Dec 2024 20:42:05 +0100 Subject: [PATCH] Add shellcheck workflow --- .forgejo/workflows/shellcheck.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .forgejo/workflows/shellcheck.yml diff --git a/.forgejo/workflows/shellcheck.yml b/.forgejo/workflows/shellcheck.yml new file mode 100644 index 0000000..ebf21c3 --- /dev/null +++ b/.forgejo/workflows/shellcheck.yml @@ -0,0 +1,24 @@ +name: Bash Linter + +on: + push: + paths: + - '**/*.sh' + pull_request: + paths: + - '**/*.sh' + +jobs: + lint: + runs-on: runner01 + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Run ShellCheck + uses: docker/build-push-action@v2 + + - name: Lint Bash Scripts + run: | + find . -name '*.sh' -print0 | xargs -0 shellcheck +