diff --git a/.github/workflows/php-test.yml b/.github/workflows/php-test.yml index c384da202..d6fa82dbb 100644 --- a/.github/workflows/php-test.yml +++ b/.github/workflows/php-test.yml @@ -39,9 +39,5 @@ jobs: working-directory: nextcloud/apps/calendar run: composer run test - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - file: ./nextcloud/apps/calendar/tests/php/clover.unit.xml - flags: php - fail_ci_if_error: true + working-directory: nextcloud/apps/calendar + run: curl -s https://codecov.io/bash | bash -s - -t ${{ secrets.CODECOV_TOKEN }} -F php -f clover.unit.xml -Z diff --git a/composer.json b/composer.json index d8f723aab..60496d190 100644 --- a/composer.json +++ b/composer.json @@ -15,6 +15,6 @@ "scripts": { "lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;", "phan": "phan --allow-polyfill-parser -k .phan/config.php", - "test": "phpunit --configuration tests/php/phpunit.unit.xml --fail-on-warning" + "test": "phpunit --configuration phpunit.unit.xml --fail-on-warning" } } diff --git a/tests/php/phpunit.unit.xml b/phpunit.unit.xml similarity index 52% rename from tests/php/phpunit.unit.xml rename to phpunit.unit.xml index fc90e7e80..bda6ea4d3 100644 --- a/tests/php/phpunit.unit.xml +++ b/phpunit.unit.xml @@ -1,23 +1,23 @@ - - unit - unit + ./tests/php/unit + ./tests/php/unit - ../../ + ./ - ../calendar/appinfo - ../calendar/l10n - ../calendar/templates - ../calendar/tests + ./appinfo + ./l10n + ./templates + ./tests