diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 7a498fb..b272684 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -1,13 +1,15 @@ --- -on: # yamllint disable-line rule:truthy - pull_request: +on: + push: + branches: + - '4.*' paths: - 'src/**' - '.php-cs-fixer.dist.php' - 'psalm*' - 'composer.*' - push: + pull_request: paths: - 'src/**' - '.php-cs-fixer.dist.php' @@ -40,7 +42,7 @@ jobs: uses: shivammathur/setup-php@2.30.4 with: php-version: ${{ matrix.php-version }} - extensions: none, ctype, curl, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter, sockets, opcache, pcntl, posix + extensions: none, ctype, curl, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter, sockets, opcache, pcntl, posix, pdo ini-values: error_reporting=E_ALL coverage: none diff --git a/composer.json b/composer.json index bdba80c..a97720d 100644 --- a/composer.json +++ b/composer.json @@ -37,6 +37,7 @@ "cs:fix": "php-cs-fixer fix -v", "psalm": "psalm", "psalm:baseline": "psalm --set-baseline=psalm-baseline.xml", + "psalm:ci": "psalm --output-format=github --shepherd --show-info=false --stats --threads=4", "test": "phpunit --color=always" }, "minimum-stability": "dev",