Skip to content

Commit c3462d8

Browse files
committed
Merge branch 'add-phpstan'
2 parents 6c5bf7f + 9b94415 commit c3462d8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ jobs:
4141
run: composer install --prefer-dist --no-progress
4242

4343
- name: Run test suite
44-
run: composer run-script test
44+
run: composer run-script test & composer run-script test:type

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
}
3131
},
3232
"scripts": {
33-
"test": "./vendor/bin/pest"
33+
"test": "vendor/bin/pest",
34+
"test:type": "vendor/bin/phpstan analyse src tests --ansi --memory-limit=-1 --level=5"
3435
},
3536
"config": {
3637
"sort-packages": true,
@@ -39,6 +40,7 @@
3940
}
4041
},
4142
"require-dev": {
42-
"pestphp/pest": "^1.22"
43+
"pestphp/pest": "^1.22",
44+
"phpstan/phpstan": "^1.10"
4345
}
4446
}

0 commit comments

Comments
 (0)