Add phpcs check
This commit is contained in:
parent
769713abba
commit
083448cf39
2 changed files with 21 additions and 4 deletions
21
.github/workflows/php-cs.yml
vendored
21
.github/workflows/php-cs.yml
vendored
|
|
@ -25,17 +25,30 @@ jobs:
|
|||
# git clone dolibarr into GITHUB_WORKSPACE = /home/runner/work/dolibarr/dolibarr
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Version PHP
|
||||
run: |
|
||||
php -i | head -
|
||||
|
||||
- name: Set vendor-dir
|
||||
run: composer -n config -g vendor-dir htdocs/includes
|
||||
|
||||
- name: Install packages
|
||||
#- name: Install packages for PHP 7.1
|
||||
# run: |
|
||||
# composer -n require phpunit/phpunit ^7.5 \
|
||||
# php-parallel-lint/php-parallel-lint ^1 \
|
||||
# php-parallel-lint/php-console-highlighter ^0 \
|
||||
# php-parallel-lint/php-var-dump-check ~0.4 \
|
||||
# squizlabs/php_codesniffer ^3
|
||||
|
||||
- name: Install packages for PHP 8.1
|
||||
run: |
|
||||
composer -n require phpunit/phpunit ^7.5 \
|
||||
php-parallel-lint/php-parallel-lint ^1 \
|
||||
composer self-update 2.4.4
|
||||
composer -n require --ignore-platform-reqs phpunit/phpunit ^8 \
|
||||
php-parallel-lint/php-parallel-lint ^1.2 \
|
||||
php-parallel-lint/php-console-highlighter ^0 \
|
||||
php-parallel-lint/php-var-dump-check ~0.4 \
|
||||
squizlabs/php_codesniffer ^3
|
||||
|
||||
|
||||
- name: Version information
|
||||
run: |
|
||||
composer -V
|
||||
|
|
|
|||
4
.github/workflows/php-mysql.yml
vendored
4
.github/workflows/php-mysql.yml
vendored
|
|
@ -25,6 +25,10 @@ jobs:
|
|||
# git clone dolibarr into GITHUB_WORKSPACE = /home/runner/work/dolibarr/dolibarr
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Version PHP
|
||||
run: |
|
||||
php -i | head -
|
||||
|
||||
- name: Version
|
||||
run: composer -V
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue