From 102bd46889b6c7172e6681ce5145b65931ae20e4 Mon Sep 17 00:00:00 2001 From: wpdev Date: Fri, 31 Jul 2026 09:20:07 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=8A=A0=E5=85=A5=20PHP=20lint=20workflo?= =?UTF-8?q?w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 本 AddOn 是薄註冊層(bootstrap + 一個整合類別),無自有測試套件, syntax lint 是此處有意義的 gate。 Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01TbG1keQQ7XBa7qMQY16KCY --- .gitea/workflows/test.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitea/workflows/test.yml 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"