From 383155f51d2afa6f38d743ea5f6ac374d7b81756 Mon Sep 17 00:00:00 2001 From: Yongmin Hong Date: Sat, 20 Apr 2024 18:04:53 +0900 Subject: [PATCH] actions: php quick syntax check cf. https://we.phorge.it/book/phorge/article/configuring_preamble/ Bug: N/A Signed-off-by: Yongmin Hong --- .github/workflows/quicksyntaxcheck.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/quicksyntaxcheck.yml diff --git a/.github/workflows/quicksyntaxcheck.yml b/.github/workflows/quicksyntaxcheck.yml new file mode 100644 index 0000000..b8923c1 --- /dev/null +++ b/.github/workflows/quicksyntaxcheck.yml @@ -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