From b32b9e7121ba8d429d807b261497e2325d56da4e Mon Sep 17 00:00:00 2001 From: Jonas Rittershofer Date: Sat, 16 Apr 2022 10:58:30 +0200 Subject: [PATCH] Upload coverage only once Signed-off-by: Jonas Rittershofer useful --- .github/workflows/phpunit.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 4c32b041..9a277df1 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -19,6 +19,8 @@ jobs: fail-fast: false matrix: php-versions: ['7.4', "8.0", "8.1"] + # Upload coverage only once (out of php-versions) + coverage-on: ['8.1'] databases: ['sqlite'] server-versions: ['master'] @@ -67,6 +69,7 @@ jobs: run: composer test:integration - name: Upload coverage + if: matrix.php-versions == matrix.coverage-on uses: codecov/codecov-action@v1 with: root_dir: apps/${{ env.APP_NAME }}