From 697ac953ebae8d4dcd9f016aeb9ae4fd73765727 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Tue, 26 Nov 2024 12:36:16 +0100 Subject: [PATCH] GHA: setup shellcheck --- .github/workflows/pr-review.yml | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/pr-review.yml diff --git a/.github/workflows/pr-review.yml b/.github/workflows/pr-review.yml new file mode 100644 index 00000000..8d30b0d6 --- /dev/null +++ b/.github/workflows/pr-review.yml @@ -0,0 +1,41 @@ +# PR Review workflows. + +name: pr-review +on: + workflow_dispatch: + pull_request: + push: +jobs: + shellcheck-code: + name: shellcheck main code + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: shellcheck + uses: reviewdog/action-shellcheck@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-review + path: "." + pattern: | + grml-live + scripts/*.sh + remaster/grml-live-remaster + etc/grml/fai/config/hooks/* + etc/grml/fai/config/scripts/* + check_all_files_with_shebangs: "false" + + shellcheck-tests: + name: shellcheck test scripts + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: shellcheck + uses: reviewdog/action-shellcheck@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-review + path: tests + pattern: | + *.sh + check_all_files_with_shebangs: "false"