diff --git a/.github/workflows/buildcheck.yml b/.github/workflows/buildcheck.yml index 0716051..d27836d 100644 --- a/.github/workflows/buildcheck.yml +++ b/.github/workflows/buildcheck.yml @@ -37,6 +37,9 @@ jobs: - name: PHPUnit run: docker exec ci vendor/bin/phpunit + - name: Static Analysis + run: docker exec ci vendor/bin/phpstan analyse --level=9 src tests + - name: Coding Standards run: docker exec ci vendor/bin/phpcs diff --git a/composer.json b/composer.json index f7cf58a..5cbdec2 100644 --- a/composer.json +++ b/composer.json @@ -24,6 +24,7 @@ "require-dev": { "mockery/mockery": "^1.6.12", "mikey179/vfsstream": "^1.6.12", + "phpstan/phpstan": "^1.12", "squizlabs/php_codesniffer": "^3.10", "phpunit/phpunit": "^9.5.10" }, @@ -43,6 +44,7 @@ "scripts": { "test": [ "vendor/bin/phpunit", + "vendor/bin/phpstan analyse --level=9 src tests", "vendor/bin/phpcs", "@composer validate --strict" ]