From 72d58ddf237e4ded4b100fe4daf37894cd346cd0 Mon Sep 17 00:00:00 2001 From: roxblnfk Date: Thu, 24 Oct 2024 21:30:17 +0400 Subject: [PATCH] optimize psalm workflow running --- .github/workflows/static-analysis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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