Dev install phpstan, phan and phplint

This commit is contained in:
2023-01-11 17:00:57 +09:00
parent 8ae06efe4e
commit 233f9fbf81
3 changed files with 11 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
# This template allows you to validate your PHP application.
# The workflow allows running tests and code linting on the default branch.
image: composer:2.0
image: composer:2.1
pipelines:
@@ -12,14 +12,14 @@ pipelines:
- step:
name: Test
script:
- composer install
- ./vendor/bin/phpunit test/phpUnitTests
- composer require phpunit/phpunit
- ./vendor/bin/phpunit ./test/phpUnitTests
caches:
- composer
- step:
name: Lint
script:
- composer install
- ./vendor/bin/phplint . --exclude=vendor
- composer require overtrue/phplint
- ./vendor/bin/phplint ./ --exclude=vendor
caches:
- composer
- composer