From ad04317753419ea009ce4c8a4123e9940649e4d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Fri, 28 Feb 2020 11:26:55 +0100 Subject: Codecov MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- .github/workflows/phpunit.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to '.github/workflows') 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 -- cgit v1.2.3