Skip to content

Commit

Permalink
Add composer script
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Lehmann committed Sep 30, 2022
1 parent 3a19365 commit 5c643b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Install composer dependencies
run: |
composer require friendsoftypo3/phpstan-typo3:^0.7 typo3/cms-core:^$typo3 typo3/cms-frontend:^$typo3 typo3/cms-backend:^$typo3
composer require typo3/cms-core:^$typo3 typo3/cms-frontend:^$typo3 typo3/cms-backend:^$typo3
- name: Run PHPStan
run: ./vendor/bin/phpstan analyse
8 changes: 8 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,13 @@
"typo3/cms-composer-installers": true,
"typo3/class-alias-loader": true
}
},
"require-dev": {
"saschaegerer/phpstan-typo3": "^1.1"
},
"scripts": {
"phpstan": [
"phpstan analyse -c phpstan.neon"
]
}
}

0 comments on commit 5c643b6

Please sign in to comment.