mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 20:04:32 +02:00
run phpmd in own woodpecker job
This commit is contained in:
parent
6aadb63b82
commit
e364d254ed
2 changed files with 23 additions and 5 deletions
|
@ -36,11 +36,7 @@ steps:
|
|||
- '.composer'
|
||||
volumes:
|
||||
- /tmp/drone-cache:/tmp/cache
|
||||
phpmd:
|
||||
image: php:8.3
|
||||
commands:
|
||||
- ./bin/composer.phar run phpmd
|
||||
code_style:
|
||||
check:
|
||||
image: php:8.3
|
||||
commands:
|
||||
- echo "**** Use bin/dev/fix-codestyle.sh in case of errors ****"
|
||||
|
|
22
.woodpecker/.phpmd_check.yml
Normal file
22
.woodpecker/.phpmd_check.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
# SPDX-FileCopyrightText: 2010 - 2024 the Friendica project
|
||||
#
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
# The phpmd check is just triggered for PRs and pushes to non-stable branches of Friendica
|
||||
when:
|
||||
branch:
|
||||
exclude: [ stable ]
|
||||
event: [ pull_request, push ]
|
||||
|
||||
steps:
|
||||
composer_install:
|
||||
image: composer
|
||||
commands:
|
||||
- mkdir addon
|
||||
- export COMPOSER_HOME=.composer
|
||||
- ./bin/composer.phar install
|
||||
|
||||
phpmd:
|
||||
image: php:8.3
|
||||
commands:
|
||||
- ./bin/composer.phar run phpmd
|
Loading…
Add table
Add a link
Reference in a new issue