diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..e0dca18 --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,20 @@ +name: Tests + +on: + push: + branches: [ main, master, develop ] + pull_request: + branches: [ main, master, develop ] + +jobs: + lint: + name: PHP Lint + runs-on: ubuntu-latest + # This AddOn is a thin registration shim (bootstrap + one integration class) + # with no test suite of its own; syntax lint is the meaningful gate here. + steps: + - uses: actions/checkout@v4 + - name: Check PHP syntax + run: | + find . -name "*.php" ! -path "./vendor/*" -print0 | xargs -0 -n1 php -l + echo "PHP syntax OK"