diff options
Diffstat (limited to '.github/workflows/phpunit.yml')
-rw-r--r-- | .github/workflows/phpunit.yml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 54137efa..74d94799 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -49,7 +49,6 @@ jobs: php-version: ${{ matrix.php-versions }} tools: phpunit extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite - coverage: none - name: Set up PHPUnit working-directory: apps/${{ env.APP_NAME }} @@ -64,14 +63,18 @@ jobs: ./occ app:enable ${{ env.APP_NAME }} php -S localhost:8080 & - - name: PHPUnit + - name: PHPUnit & coverage working-directory: apps/${{ env.APP_NAME }} - run: ./vendor/phpunit/phpunit/phpunit -c phpunit.xml + run: ./vendor/phpunit/phpunit/phpunit --coverage-clover coverage.xml -c phpunit.xml - name: PHPUnit integration working-directory: apps/${{ env.APP_NAME }} run: ./vendor/phpunit/phpunit/phpunit -c phpunit.integration.xml + - name: Upload coverage + working-directory: apps/${{ env.APP_NAME }} + run: bash <(curl -s https://codecov.io/bash) + mysql: runs-on: ubuntu-latest |