Skip to content

Commit

Permalink
Include phpstan as a ci step
Browse files Browse the repository at this point in the history
  • Loading branch information
donatj committed Oct 31, 2023
1 parent 44f2ba3 commit 6ec782a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ jobs:
run: composer install

- name: Run tests
run: ./vendor/bin/phpunit
run: vendor/bin/phpunit

- name: Run tests
run: vendor/bin/phpstan
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@
"php": "^7.2|^8.0"
},
"require-dev": {
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "~5|~9"
},
"autoload": {
"files": [
"src/streams.php"
]
},
"config": {
"sort-packages": true
}
}
5 changes: 5 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
parameters:
level: 6
paths:
- src
- test

0 comments on commit 6ec782a

Please sign in to comment.