From 3618510a14336da2dea00d40753f71100e09542a Mon Sep 17 00:00:00 2001 From: Thierry T <1940947+lepiaf@users.noreply.github.com> Date: Mon, 25 Jan 2021 22:22:38 +0100 Subject: [PATCH] Disable coverage on PHP 8 --- .github/workflows/continuous-integration.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 81450f64..09befb9b 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -92,14 +92,20 @@ jobs: run: "composer update --no-interaction --no-progress --prefer-dist --prefer-stable --prefer-lowest" if: "${{ matrix.deps == 'low' }}" - - name: "Run PHPUnit" + - name: "Run PHPUnit with coverage" run: "vendor/bin/phpunit --coverage-clover=coverage.xml" + if: "${{ matrix.php-version != '8.0' }}" + + - name: "Run PHPUnit without coverage" + run: "vendor/bin/phpunit" + if: "${{ matrix.php-version == '8.0' }}" - name: "Upload coverage file" uses: "actions/upload-artifact@v2" with: name: "phpunit-${{ matrix.php-version }}.coverage" path: "coverage.xml" + if: "${{ matrix.php-version != '8.0' }}" upload_coverage: name: "Upload coverage to Codecov"