From 75a2abbcfd22b127ecde0c2be90e783c80ed44bf Mon Sep 17 00:00:00 2001 From: PierreGode Date: Sat, 7 Jun 2025 09:20:03 +0200 Subject: [PATCH] Create Shellcheck.yaml --- .github/workflows/Shellcheck.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/Shellcheck.yaml diff --git a/.github/workflows/Shellcheck.yaml b/.github/workflows/Shellcheck.yaml new file mode 100644 index 0000000..997e590 --- /dev/null +++ b/.github/workflows/Shellcheck.yaml @@ -0,0 +1,27 @@ +name: ADconnection.sh Test Pipeline + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + test-adconnection: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install shellcheck + run: sudo apt-get update && sudo apt-get install -y shellcheck + + - name: Shellcheck lint ADconnection.sh + run: shellcheck ./ADconnection.sh + + - name: Bash syntax check ADconnection.sh + run: bash -n ./ADconnection.sh + + - name: Run ADconnection.sh --help + run: bash ./ADconnection.sh --help