From 1d47b0cb3b374a96580462d6152d11b96e3d6199 Mon Sep 17 00:00:00 2001 From: Chris Elias Date: Tue, 12 Dec 2023 09:15:14 -0500 Subject: [PATCH] adding github action to check shell code --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..3fe5a44f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: checkshell +on: + - pull_request +jobs: + sh-checker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run the sh-checker + uses: luizm/action-sh-checker@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SHELLCHECK_OPTS: -e SC1004 # exclude some shellcheck warnings. + SHFMT_OPTS: -s # arguments to shfmt. + with: + sh_checker_only_diff: true # only run against files that were updated + sh_checker_comment: true # include results as github comment