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