Skip to content

Commit

Permalink
Enhance static analysis workflow and composer config
Browse files Browse the repository at this point in the history
Added argument "--prefer-dist" to forward-command in composer.json to optimize package installation. Modified GitHub workflow to include debug steps for checking phpstan dependencies and relevant content in composer.lock for better traceability in static analysis.
  • Loading branch information
koriym committed Nov 24, 2024
1 parent 45a67b3 commit d953d97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ jobs:
coverage: none
- run: |
composer install --no-interaction --no-progress --prefer-dist
ls -la vendor-bin/tools/ # デバッグ用
ls -la vendor-bin/tools/
cd vendor-bin/tools
composer why phpstan/phpstan
echo "composer.lock content:"
cat composer.lock | grep -A 5 -B 5 phpstan/phpstan
- run: ./vendor/bin/phpstan analyse -c phpstan.neon --no-progress --no-interaction --error-format=checkstyle | cs2pr

static-analysis-psalm:
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@
"extra": {
"bamarni-bin": {
"bin-links": true,
"forward-command": true
"forward-command": true,
"forward-command-args": "--prefer-dist"

}
}
}

0 comments on commit d953d97

Please sign in to comment.