mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
add php-deprecation-detector
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
99b45997a6
commit
0e36ae0ba9
2 changed files with 31 additions and 1 deletions
29
.github/workflows/php-deprecation-detector.yml
vendored
Normal file
29
.github/workflows/php-deprecation-detector.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
name: PHP Deprecation Detector
|
||||||
|
# See https://github.com/wapmorgan/PhpDeprecationDetector
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
psalm:
|
||||||
|
name: PHP Deprecation Detector
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up php8.0
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: 8.0
|
||||||
|
extensions: apcu
|
||||||
|
coverage: none
|
||||||
|
|
||||||
|
- name: Run script
|
||||||
|
run: |
|
||||||
|
set -x
|
||||||
|
cd php
|
||||||
|
composer global require wapmorgan/php-deprecation-detector dev-master
|
||||||
|
composer install
|
||||||
|
composer run php-deprecation-detector
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"psalm": "psalm --threads=1",
|
"psalm": "psalm --threads=1",
|
||||||
"psalm:update-baseline": "psalm --threads=1 --update-baseline",
|
"psalm:update-baseline": "psalm --threads=1 --update-baseline",
|
||||||
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l"
|
"lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l {} \\;",
|
||||||
|
"php-deprecation-detector": "find . -name \\*.php -not -path './vendor/*' -exec phpdd scan {} -n -t 8.0 \\;"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue