Skip to content

Commit

Permalink
Merge pull request #51 from shochdoerfer/feature/license-checker-php
Browse files Browse the repository at this point in the history
Add license checker to CI workflow
  • Loading branch information
shochdoerfer authored May 29, 2021
2 parents 074eff1 + bd82c97 commit f61d305
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .allowed-licenses
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Apache-2.0
- BSD-2-Clause
- BSD-3-Clause
- MIT
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
composer require --prefer-lowest captainhook/captainhook
composer require --prefer-lowest --dev captainhook/plugin-composer bitexpert/captainhook-infection
- name: Composer license check
run: composer check-license

- name: Codesniffer
run: composer cs-check

Expand Down
14 changes: 8 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@
"captainhook/captainhook": "^5.10"
},
"require-dev": {
"bitexpert/captainhook-infection": "^0.5.0",
"captainhook/plugin-composer": "^5.3.1",
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.6",
"phpstan/phpstan": "^0.12",
"roave/security-advisories": "dev-latest",
"infection/infection": "^0.21.0",
"bitexpert/captainhook-infection": "^0.5.0",
"madewithlove/license-checker": "^0.10.0",
"phly/keep-a-changelog": "^2.11",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-strict-rules": "^0.12.9",
"phly/keep-a-changelog": "^2.11"
"phpunit/phpunit": "^9.5",
"roave/security-advisories": "dev-latest",
"squizlabs/php_codesniffer": "^3.6"
},
"autoload": {
"psr-4": {
Expand All @@ -42,6 +43,7 @@
],
"cs-check": "vendor/bin/phpcs --standard=PSR2 ./src ./tests",
"cs-fix": "vendor/bin/phpcbf",
"check-license": "vendor/bin/license-checker check",
"analyze": "vendor/bin/phpstan analyze",
"test": "vendor/bin/phpunit",
"infection": "vendor/bin/infection -j4 --ignore-msi-with-no-mutations --only-covered",
Expand Down
126 changes: 125 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f61d305

Please sign in to comment.