Dev install phpstan, phan and phplint
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
vendor
|
vendor
|
||||||
.phpunit.result.cache
|
.phpunit.result.cache
|
||||||
|
.phplint-cache
|
||||||
composer.lock
|
composer.lock
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# This template allows you to validate your PHP application.
|
# This template allows you to validate your PHP application.
|
||||||
# The workflow allows running tests and code linting on the default branch.
|
# The workflow allows running tests and code linting on the default branch.
|
||||||
|
|
||||||
image: composer:2.0
|
image: composer:2.1
|
||||||
|
|
||||||
|
|
||||||
pipelines:
|
pipelines:
|
||||||
@@ -12,14 +12,14 @@ pipelines:
|
|||||||
- step:
|
- step:
|
||||||
name: Test
|
name: Test
|
||||||
script:
|
script:
|
||||||
- composer install
|
- composer require phpunit/phpunit
|
||||||
- ./vendor/bin/phpunit test/phpUnitTests
|
- ./vendor/bin/phpunit ./test/phpUnitTests
|
||||||
caches:
|
caches:
|
||||||
- composer
|
- composer
|
||||||
- step:
|
- step:
|
||||||
name: Lint
|
name: Lint
|
||||||
script:
|
script:
|
||||||
- composer install
|
- composer require overtrue/phplint
|
||||||
- ./vendor/bin/phplint . --exclude=vendor
|
- ./vendor/bin/phplint ./ --exclude=vendor
|
||||||
caches:
|
caches:
|
||||||
- composer
|
- composer
|
||||||
|
|||||||
@@ -25,6 +25,9 @@
|
|||||||
"exclude": ["/test/", "/test/*", "/phpstan.neon", "/psalm.xml", "/.phan/", "/.vscode/", "/phpunit.xml"]
|
"exclude": ["/test/", "/test/*", "/phpstan.neon", "/psalm.xml", "/.phan/", "/.vscode/", "/phpunit.xml"]
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^9"
|
"phpunit/phpunit": "^9",
|
||||||
|
"overtrue/phplint": "8.1.x-dev",
|
||||||
|
"phpstan/phpstan": "1.10.x-dev",
|
||||||
|
"phan/phan": "v5.x-dev"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user