Skip to content

Commit

Permalink
optimize psalm workflow running
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Oct 24, 2024
1 parent a03e85d commit 1532590
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -40,7 +42,7 @@ jobs:
uses: shivammathur/[email protected]
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

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1532590

Please sign in to comment.