From 0165029423c09b04b07cfcc76d0baa13d540596b Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 21 Apr 2023 21:30:57 +0100 Subject: [PATCH] feat: run PHPStan in CI if enabled --- templates/ci/github-actions/ci.yml.twig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/ci/github-actions/ci.yml.twig b/templates/ci/github-actions/ci.yml.twig index e587ef1..88c4535 100644 --- a/templates/ci/github-actions/ci.yml.twig +++ b/templates/ci/github-actions/ci.yml.twig @@ -38,6 +38,10 @@ jobs: just composer install --quiet --no-progress - # TODO: add PHPCS and PHPStan + # TODO: add PHPCS + + {% if "phpstan" in php|keys -%} + just _run php phpstan analyze + {%- endif %} just test --testdox --colors=always