Skip to content

Commit 49de21c

Browse files
committed
ci: add static analysis
1 parent 5a9da81 commit 49de21c

File tree

4 files changed

+2749
-702
lines changed

4 files changed

+2749
-702
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,8 @@ jobs:
2525
- name: 💅 Lint
2626
run: composer lint
2727

28+
- name: 🏁 Static analysis
29+
run: composer static-analysis
30+
2831
- name: ✅ Run the tests
2932
run: composer test

composer.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
"php": "^8.3"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "^11.1",
19-
"codelytv/coding-style": "^1.2"
18+
"phpunit/phpunit": "^10",
19+
"codelytv/coding-style": "^1.2",
20+
"vimeo/psalm": "^5.24"
2021
},
2122
"autoload": {
2223
"psr-4": {
@@ -33,6 +34,7 @@
3334
"scripts": {
3435
"test": "phpunit --configuration phpunit.xml",
3536
"lint": "ecs check",
36-
"lint:fix": "ecs check --fix"
37+
"lint:fix": "ecs check --fix",
38+
"static-analysis": "psalm"
3739
}
3840
}

0 commit comments

Comments
 (0)