From 7d0e8eb80030d72bf4e802568d54f8114ff60281 Mon Sep 17 00:00:00 2001 From: Jochen Mehlich Date: Sat, 24 Oct 2026 10:54:29 +0200 Subject: [PATCH] =?UTF-8?q?Gitea-Workflow:=20Lint=20f=C3=BCr=20Shell-=20un?= =?UTF-8?q?d=20Python-Skripte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .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..7c1f5ae --- /dev/null +++ b/.gitea/workflows/lint.yml @@ -0,0 +1,30 @@ +name: lint + +on: + push: + branches: [main] + pull_request: + +jobs: + shell: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: bash -n + run: for f in *.sh; do bash -n "$f"; done + - name: shellcheck + run: | + sudo apt-get update -qq && sudo apt-get install -y -qq shellcheck + shellcheck --severity=warning *.sh + + python: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Syntax-Check + run: python -m py_compile create-deploy-user.py + - name: ruff + run: pip install -q ruff && ruff check create-deploy-user.py