Skip to content

Commit 22d5f93

Browse files
committed
added to run PHPStan in CI
1 parent 668c70f commit 22d5f93

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.github/workflows/php.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ jobs:
4242

4343
- name: Run test suite
4444
run: composer run-script test
45+
46+
- name: Run PHPStan
47+
run: composer phpstan

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
### Features
4+
5+
* added to run PHPStan in GitHub Action flow.
6+
37
## v1.1.1 (2023-07-30)
48

59
### Features

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ $ bin/php-class-diagram --division-diagram test/fixtures/enum/
286286
### Open shell
287287

288288
```bash
289-
docker-compose build
290-
docker-compose run --rm php_cli bash
289+
docker compose build
290+
docker compose run --rm php_cli bash
291291
```
292292

293293
### install dependencies

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
],
3636
"build": [
3737
"php -d phar.readonly=off ./vendor/bin/phar-composer build ./"
38+
],
39+
"phpstan": [
40+
"vendor/bin/phpstan analyse"
3841
]
3942
},
4043
"bin": [

0 commit comments

Comments
 (0)