diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-02-28 11:26:55 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-02-28 11:26:55 +0100 |
commit | ad04317753419ea009ce4c8a4123e9940649e4d7 (patch) | |
tree | e4e2fbc0802aa3541574ef7f642ef3a71e44042a /.github/workflows/phpunit.yml | |
parent | 62a2cb0848c9cb4c9947ca8cfab6f7fb8ec84fda (diff) |
Codecov
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
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 |