From b0b7969cbfca4c35db76e37ae3fd10b3efc75877 Mon Sep 17 00:00:00 2001 From: Lomanic Date: Wed, 11 Nov 2020 23:03:48 +0100 Subject: [PATCH] [ci] Implement automatic shellcheck test on GH Actions --- .github/workflows/shellcheck.yml | 14 ++++++++++++++ 1 file changed, 14 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 0000000..ef1e105 --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,14 @@ +on: [push, pull_request] +name: Shellcheck +jobs: + shellcheck: + name: Shellcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Get shellCheck + run: | + curl -Lf https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz | tar xJfv - --strip-components=1 shellcheck-stable/shellcheck -C /bin + - name: Run shellcheck + run: | + git ls-files --exclude='*.sh' --ignored | xargs shellcheck