From 3ce64fef31950b8d5c2750fc4d0a7103591075fb Mon Sep 17 00:00:00 2001 From: Hafiz Muhammad Moaz Date: Fri, 28 Aug 2026 03:40:13 +0500 Subject: [PATCH] ci: run PHPStan in lint job and add CI badge to README (fixes #9) --- .github/workflows/ci.yml | 7 +++++++ README.md | 2 ++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f438263..a0fdde2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,3 +83,10 @@ jobs: else echo "php-cs-fixer not installed; skipping." fi + - name: Static analysis + run: | + if [ -f vendor/bin/phpstan ]; then + vendor/bin/phpstan analyse --no-progress + else + echo "phpstan not installed; skipping." + fi diff --git a/README.md b/README.md index 2d4f28a..414fafa 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Webisters CLI +[![CI](https://github.com/webisters/cli/actions/workflows/ci.yml/badge.svg)](https://github.com/webisters/cli/actions/workflows/ci.yml) + Webisters CLI Library This library is designed for reuse in Composer-based PHP applications. ## What It Provides