summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2023-01-20 17:04:09 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2023-01-20 17:12:47 +0100
commit413a1814d3cbc43bbb27698195a1ce5d47bd9091 (patch)
tree9953aff0ace649ba16faa69f38d2100bca3b2924 /.github/workflows
parent2b369fc7321f147542cd34becc0ea4623f06e13a (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.yml6
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