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"