]> git.mxchange.org Git - friendica.git/commitdiff
run phpmd in own woodpecker job
authorArt4 <art4@wlabs.de>
Thu, 23 Jan 2025 14:42:51 +0000 (14:42 +0000)
committerArt4 <art4@wlabs.de>
Thu, 23 Jan 2025 14:42:51 +0000 (14:42 +0000)
.woodpecker/.code_standards_check.yml
.woodpecker/.phpmd_check.yml [new file with mode: 0644]

index 54fc9f9894de598c2a5222d5aa950787f11be061..1217ea3f0b0f9a88df5345e93f99ec190be5c6f0 100644 (file)
@@ -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 ****"
diff --git a/.woodpecker/.phpmd_check.yml b/.woodpecker/.phpmd_check.yml
new file mode 100644 (file)
index 0000000..d079dd6
--- /dev/null
@@ -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