From c495e65105ad5bdfdfa197e11168a1d530886635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Sat, 21 Sep 2024 14:12:56 +0200 Subject: [PATCH] cleanup repo --- .forgejo/workflows/phpunit.yml | 4 ++-- composer.json | 5 +++++ .phpcs.xml => phpcs.xml | 0 {bin => tests}/install-wp-tests.sh | 0 4 files changed, 7 insertions(+), 2 deletions(-) rename .phpcs.xml => phpcs.xml (100%) rename {bin => tests}/install-wp-tests.sh (100%) diff --git a/.forgejo/workflows/phpunit.yml b/.forgejo/workflows/phpunit.yml index e96a415..77d2a35 100644 --- a/.forgejo/workflows/phpunit.yml +++ b/.forgejo/workflows/phpunit.yml @@ -67,11 +67,11 @@ jobs: - name: Setup Test Environment if: steps.cache-wordpress.outputs.cache-hit != 'true' - run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 6.6 false false false false + run: bash tests/install-wp-tests.sh wordpress_test root root 127.0.0.1 6.6 false false false false - name: Initialize WordPress test database if: steps.cache-wordpress.outputs.cache-hit != 'false' - run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 6.6 false true true true + run: bash tests/install-wp-tests.sh wordpress_test root root 127.0.0.1 6.6 false true true true - name: Unit Testing run: cd /workspace/Event-Federation/wordpress-activitypub-event-extensions/ && ./vendor/bin/phpunit diff --git a/composer.json b/composer.json index 8a5b5a5..58c647d 100644 --- a/composer.json +++ b/composer.json @@ -36,6 +36,11 @@ ], "lint:fix": [ "vendor/bin/phpcbf" + ], + "test": [ + "composer install", + "tests/install-wp-tests.sh activitypub-test root activitypub-test test-db latest true", + "vendor/bin/phpunit" ] } } diff --git a/.phpcs.xml b/phpcs.xml similarity index 100% rename from .phpcs.xml rename to phpcs.xml diff --git a/bin/install-wp-tests.sh b/tests/install-wp-tests.sh similarity index 100% rename from bin/install-wp-tests.sh rename to tests/install-wp-tests.sh