all-in-one/.github/workflows/php-deprecation-detector.yml
Simon L 9a1371a96b still log to cli output
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-03-20 16:10:38 +01:00

33 lines
764 B
YAML

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.1
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
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 | tee -i ./phpdd.log
if grep "Total issues:" ./phpdd.log; then
exit 1
fi