From b1995ef5dde166c78e1fc31067c0e1487beef1f9 Mon Sep 17 00:00:00 2001 From: Clement Desmidt Date: Thu, 24 Sep 2026 15:32:19 +0200 Subject: [PATCH] Replace drone with gitea actions --- .drone.yml | 15 --------------- .gitea/workflows/test.yml | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 15 deletions(-) delete mode 100644 .drone.yml create mode 100644 .gitea/workflows/test.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 835daf3..0000000 --- a/.drone.yml +++ /dev/null @@ -1,15 +0,0 @@ -kind: pipeline -name: default - -steps: - - name: install - pull: if-not-exists - image: composer - commands: - - composer install --ignore-platform-reqs - - name: test - image: php:7 - commands: - - vendor/bin/phpmd app text phpmd.xml - - vendor/bin/phpcs --standard=PSR2 app - - vendor/bin/phpcpd app \ No newline at end of file diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..4e950b6 --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,24 @@ +name: Format and test + +on: + push: + branches: + - master + +jobs: + build: + name: 🕵🏻 Test + runs-on: linux + steps: + - uses: actions/checkout@v3 + + - name: Composer + uses: php-actions/composer@v6 + with: + args: --ignore-platform-reqs + + - name: PHPMD, PHPCS & PHPCPD + run: | + vendor/bin/phpmd app text phpmd.xml + vendor/bin/phpcs --standard=PSR2 app + vendor/bin/phpcpd app