mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-06-02 08:50:08 +00:00
Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/c165a969-ebb0-4afd-ac19-c02c3887bc94 Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com>
41 lines
913 B
YAML
41 lines
913 B
YAML
name: PHP Deprecation Detector
|
|
# See https://github.com/wapmorgan/PhpDeprecationDetector
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'php/**'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'php/**'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
phpdd:
|
|
name: PHP Deprecation Detector
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- name: Set up php
|
|
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # master
|
|
with:
|
|
php-version: 8.5
|
|
extensions: apcu
|
|
coverage: none
|
|
|
|
- name: Run script
|
|
run: |
|
|
set -x
|
|
cd php
|
|
composer install
|
|
composer run php-deprecation-detector | tee -i ./phpdd.log
|
|
if grep "Total issues:" ./phpdd.log; then
|
|
exit 1
|
|
fi
|