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