Skip to content

Commit

Permalink
Install phpstan for static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
duncan3dc committed Oct 30, 2024
1 parent 6044c4b commit d77a02f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/buildcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
- name: PHPUnit
run: docker exec ci vendor/bin/phpunit

- name: Static Analysis
run: docker exec ci vendor/bin/phpstan analyse --level=9 src tests

- name: Coding Standards
run: docker exec ci vendor/bin/phpcs

Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"require-dev": {
"mockery/mockery": "^1.6.12",
"mikey179/vfsstream": "^1.6.12",
"phpstan/phpstan": "^1.12",
"squizlabs/php_codesniffer": "^3.10",
"phpunit/phpunit": "^9.5.10"
},
Expand All @@ -43,6 +44,7 @@
"scripts": {
"test": [
"vendor/bin/phpunit",
"vendor/bin/phpstan analyse --level=9 src tests",
"vendor/bin/phpcs",
"@composer validate --strict"
]
Expand Down

0 comments on commit d77a02f

Please sign in to comment.