From 502c08ce5486f8a35d5ceb4b7055f0aad50e9d71 Mon Sep 17 00:00:00 2001 From: meisam Date: Wed, 18 Oct 2023 17:40:03 +0200 Subject: [PATCH] add shellcheck to ci --- .github/workflows/shellcheck.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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..17c0153 --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,20 @@ +--- +name: Shellcheck +on: [push, pull_request] +permissions: + contents: read + +jobs: + shellcheck: + name: Shellcheck + runs-on: ubuntu-latest + env: + LANG: C.UTF-8 + steps: + - uses: actions/checkout@v4 + + - name: Install shellcheck + run: sudo apt update && sudo apt install -y shellcheck && shellcheck --version + + - name: Check shell scripts + run: shellcheck -x -P "SCRIPTDIR"/utils --severity=error testssl.sh \ No newline at end of file