Skip to content

Commit

Permalink
Merge pull request #301 from hydephp/add-psalm-static-analysis
Browse files Browse the repository at this point in the history
Add psalm static analysis
  • Loading branch information
caendesilva authored Jul 31, 2022
2 parents 761d0c7 + 80dc9c2 commit aa798bd
Show file tree
Hide file tree
Showing 5 changed files with 1,173 additions and 289 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,9 @@ jobs:
- name: Check coding syntax/standards (PHP CodeSniffer)
run: vendor/bin/phpcs --colors --cache=build/cache/phpcs.cache packages --standard=PSR2 --extensions="php" --ignore="*test.php,*.blade.php,ValidationService.php" || true

- name: Run static analysis (Psalm/Shepherd)
run: vendor/bin/psalm --shepherd || true


run-static-analysis:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,6 @@ jobs:

- name: Run static analysis (PHPStan)
run: vendor/bin/phpstan analyse --ansi packages/framework/src packages/realtime-compiler/src || true

- name: Run static analysis (Psalm/Shepherd)
run: vendor/bin/psalm --shepherd || true
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"laravel/tinker": "^2.7",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpstan/phpstan": "^1.8",
"squizlabs/php_codesniffer": "^3.7"
"squizlabs/php_codesniffer": "^3.7",
"vimeo/psalm": "^4.24"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit aa798bd

Please sign in to comment.