diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2023-01-20 17:04:09 +0100 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2023-01-20 17:12:47 +0100 |
commit | 413a1814d3cbc43bbb27698195a1ce5d47bd9091 (patch) | |
tree | 9953aff0ace649ba16faa69f38d2100bca3b2924 /.github/workflows | |
parent | 2b369fc7321f147542cd34becc0ea4623f06e13a (diff) |
ci: calculate coverage only for server version "master"
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/phpunit.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index fcf56ec3..a983548b 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -58,9 +58,15 @@ jobs: php -S localhost:8080 & - name: PHPUnit & coverage + if: ${{ matrix.server-versions == 'master' }} working-directory: apps/${{ env.APP_NAME }} run: ./vendor/phpunit/phpunit/phpunit --coverage-clover coverage.xml -c phpunit.xml + - name: PHPUnit + if: ${{ matrix.server-versions != 'master' }} + working-directory: apps/${{ env.APP_NAME }} + run: ./vendor/phpunit/phpunit/phpunit -c phpunit.xml + # - name: PHPUnit integration # working-directory: apps/${{ env.APP_NAME }} # run: ./vendor/phpunit/phpunit/phpunit -c phpunit.integration.xml |