summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-01-29 12:59:45 +0100
committerJoas Schilling <coding@schilljs.com>2024-01-29 14:16:08 +0100
commite9b7a39496883915c940820e0ec27993da2053dd (patch)
tree6ea76108bcacf4a26edc6a7b9a8cb5c521b3acaa /.github
parent68727365abde32f40e41f46c8655c229c602e5a2 (diff)
feat(CI): Test codecov
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/phpunit-pgsql.yml12
1 files changed, 10 insertions, 2 deletions
diff --git a/.github/workflows/phpunit-pgsql.yml b/.github/workflows/phpunit-pgsql.yml
index ac3a8326a..5fa10e58f 100644
--- a/.github/workflows/phpunit-pgsql.yml
+++ b/.github/workflows/phpunit-pgsql.yml
@@ -88,7 +88,7 @@ jobs:
php-version: ${{ matrix.php-versions }}
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, pgsql, pdo_pgsql
- coverage: none
+ coverage: xdebug
ini-file: development
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -124,7 +124,15 @@ jobs:
# Only run if phpunit config file exists
if: steps.check_phpunit.outcome == 'success'
working-directory: apps/${{ env.APP_NAME }}
- run: composer run test:unit
+ run: composer run test:unit -- --coverage-clover ./clover.phpunit.xml
+
+ - name: Upload Unit test code coverage
+ uses: codecov/codecov-action@v3
+ with:
+ files: apps/${{ env.APP_NAME }}/clover.phpunit.xml
+ flags: phpunit
+ env:
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Check PHPUnit integration script is defined
id: check_integration