From c2c8652557a955db1d31fac6f2046195608b7ac4 Mon Sep 17 00:00:00 2001 From: Terranom674 Date: Tue, 18 Aug 2026 14:55:35 +0200 Subject: [PATCH] Automatische Syntaxpruefung fuer PHP und Python einfuehren --- .github/workflows/lint.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..745f1c2 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,32 @@ +name: Syntax Check + +on: + push: + pull_request: + +jobs: + syntax: + runs-on: ubuntu-latest + steps: + - name: Repository auschecken + uses: actions/checkout@v4 + + - name: PHP installieren + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + coverage: none + + - name: PHP Syntax pruefen + shell: bash + run: | + set -euo pipefail + while IFS= read -r -d '' file; do + php -l "$file" + done < <(find . -type f -name '*.php' -print0) + + - name: Python Syntax pruefen + shell: bash + run: | + set -euo pipefail + python3 -m compileall -q runtime