From 3679900a158606e4a1227b641a524753f5f231d8 Mon Sep 17 00:00:00 2001 From: vangelis Date: Sat, 25 Apr 2026 11:54:51 +0000 Subject: [PATCH] feat: shellcheck CI workflow + hello.sh --- .gitea/workflows/lint.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/lint.yml diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml new file mode 100644 index 0000000..c338fff --- /dev/null +++ b/.gitea/workflows/lint.yml @@ -0,0 +1,30 @@ +# Validate every shell script in the repo with shellcheck. +# Runs on every push to main + every pull request. +name: lint + +on: + push: + branches: [main] + pull_request: + +jobs: + shellcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install shellcheck + run: | + apt-get update -qq + apt-get install -y -qq shellcheck + - name: Lint *.sh + run: | + set -e + found=0 + for f in $(find . -name '*.sh' -not -path './.git/*'); do + echo "→ $f" + shellcheck -S warning "$f" || true + found=1 + done + if [ "$found" -eq 0 ]; then + echo "(no .sh files yet)" + fi