From 2b22013e08dc12cd9405ef2eaeb7152f91264cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Sat, 21 Sep 2024 15:04:06 +0200 Subject: [PATCH] Enhance docs --- .forgejo/workflows/phpcs.yml | 2 +- .forgejo/workflows/phpunit.yml | 2 +- docker-compose.yml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/phpcs.yml b/.forgejo/workflows/phpcs.yml index 8a18ae7..42d433c 100755 --- a/.forgejo/workflows/phpcs.yml +++ b/.forgejo/workflows/phpcs.yml @@ -46,5 +46,5 @@ jobs: if: steps.cache-composer.outputs.cache-hit != 'true' uses: ramsey/composer-install@v3 - - name: Detect coding standard violations + - name: Run PHP_CodeSniffer run: ./vendor/bin/phpcs diff --git a/.forgejo/workflows/phpunit.yml b/.forgejo/workflows/phpunit.yml index 77d2a35..7cd24a9 100644 --- a/.forgejo/workflows/phpunit.yml +++ b/.forgejo/workflows/phpunit.yml @@ -73,7 +73,7 @@ jobs: if: steps.cache-wordpress.outputs.cache-hit != 'false' run: bash tests/install-wp-tests.sh wordpress_test root root 127.0.0.1 6.6 false true true true - - name: Unit Testing + - name: Run PHPUnit run: cd /workspace/Event-Federation/wordpress-activitypub-event-extensions/ && ./vendor/bin/phpunit env: PHP_VERSION: ${{ matrix.php-version }} diff --git a/docker-compose.yml b/docker-compose.yml index 4891aa8..9a4085b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,8 @@ version: '3' # This files purpose is to run the PHPunit tests locally. +# Install docker and docker compose and than just run: +# docker compose up services: test-db: