From 36516ca001daff0021fc6d6b194da40a5dbafdad Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Mon, 7 Apr 2025 19:18:19 +0200 Subject: [PATCH] ci: add CI/CD workflow for Bash scripts linting --- hooks/.forgejo/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 hooks/.forgejo/workflows/ci.yml diff --git a/hooks/.forgejo/workflows/ci.yml b/hooks/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..d0d7135 --- /dev/null +++ b/hooks/.forgejo/workflows/ci.yml @@ -0,0 +1,22 @@ +name: Bash Scripts CI/CD + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + workflow_dispatch: + # Allows manual triggering + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install shellcheck + run: sudo apt-get install -y shellcheck + + - name: Lint bash scripts + run: | + find . -type f -name "*.sh" -exec shellcheck {} \;