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: