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