actions: php quick syntax check

cf. https://we.phorge.it/book/phorge/article/configuring_preamble/

Bug: N/A
Signed-off-by: Yongmin Hong <revi@omglol.email>
This commit is contained in:
revi 2024-04-20 18:04:53 +09:00
parent 683a11ca27
commit 383155f51d
Signed by: revi
GPG key ID: 1EB4F6CEEA100E94

16
.github/workflows/quicksyntaxcheck.yml vendored Normal file
View file

@ -0,0 +1,16 @@
name: "PHP Syntax Check"
on:
push:
paths:
- '**.php'
pull_request:
paths:
- '**.php'
workflow_dispatch:
jobs:
phpsyntax:
runs-on: ubuntu-latest
steps:
- name: PHP Basic Syntax Check
run: php -l PhabExt/PhabricatorCustomRobotsTxtController.php