diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..6ae3468 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,31 @@ +name: ci + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + verify: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: PHP 8.5 syntax check + run: | + php -v + find crm public src tools -name '*.php' -not -path '*/vendor/*' -print0 2>/dev/null | xargs -0 -n1 php -l >/dev/null + echo "All MoneyFlix PHP files pass PHP 8.5 syntax check" + + - name: Setup Node.js 24.22.1 + uses: actions/setup-node@v4 + with: + node-version: "24.22.1" + + - name: Verify nodejs-redirector on Node 24.22.1 + working-directory: nodejs-redirector + run: | + node -v + node --check index.mjs