From 3e0bcf7acd9abe68fd44690da9d921529df456c7 Mon Sep 17 00:00:00 2001 From: Philipp Date: Thu, 6 Jan 2022 21:54:40 +0100 Subject: [PATCH] Add license check --- .woodpecker/.license_check.yml | 6 ++++++ mods/license/license_php.template | 20 ++++++++++++++++++++ tests/src/Module/Special/OptionsTest.php | 19 +++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 .woodpecker/.license_check.yml create mode 100644 mods/license/license_php.template diff --git a/.woodpecker/.license_check.yml b/.woodpecker/.license_check.yml new file mode 100644 index 0000000000..a22c6067e3 --- /dev/null +++ b/.woodpecker/.license_check.yml @@ -0,0 +1,6 @@ +pipeline: + check: + image: friendicaci/php-cs + commands: + - export CHANGED_FILES="$(git diff --name-status ${CI_PREV_COMMIT_SHA}..${CI_COMMIT_SHA} | grep -i '\.php$' | cut -f2)" + - /check-license.sh diff --git a/mods/license/license_php.template b/mods/license/license_php.template new file mode 100644 index 0000000000..1e1f8f3092 --- /dev/null +++ b/mods/license/license_php.template @@ -0,0 +1,20 @@ +. + * + */ diff --git a/tests/src/Module/Special/OptionsTest.php b/tests/src/Module/Special/OptionsTest.php index 460435ae24..c61949aa13 100644 --- a/tests/src/Module/Special/OptionsTest.php +++ b/tests/src/Module/Special/OptionsTest.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\src\Module\Special;