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 {} \;