From b191494c0803e06c16551c528a25470b031b9e3f Mon Sep 17 00:00:00 2001 From: zen0bit Date: Sat, 4 May 2024 03:12:53 +0200 Subject: [PATCH] CI: Add SHELL check --- .github/workflows/lint-shell.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/lint-shell.yml diff --git a/.github/workflows/lint-shell.yml b/.github/workflows/lint-shell.yml new file mode 100644 index 0000000000..d3971285cd --- /dev/null +++ b/.github/workflows/lint-shell.yml @@ -0,0 +1,33 @@ +--- +name: 🐶 SHELL check 🧪 +on: + push: + branches: '**' + pull_request: + branches: '**' + workflow_dispatch: + +jobs: + reviewdog: + permissions: + checks: write + contents: read + pull-requests: write + name: shellcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: haya14busa/action-cond@v1 + id: reporter + with: + cond: ${{ github.event_name == 'pull_request' }} + + - uses: reviewdog/action-shellcheck@v1 + with: + reporter: ${{ steps.reporter.outputs.value }} + github_token: ${{ secrets.github_token }} + path: "." + check_all_files_with_shebangs: true + level: error + shellcheck_flags: '--external-sources --severity=error'