diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96aa866c..e9806e5a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,9 +54,14 @@ jobs: - name: Run Rector (dry-run) run: composer rector - - name: Run tests + - name: Run tests with coverage + if: matrix.php-versions == '8.2' && matrix.operating-system == 'ubuntu-latest' run: composer test -- --coverage-clover coverage.xml + - name: Run tests + if: matrix.php-versions != '8.2' || matrix.operating-system != 'ubuntu-latest' + run: composer test + - name: Upload coverage to Codecov if: matrix.php-versions == '8.2' && matrix.operating-system == 'ubuntu-latest' uses: codecov/codecov-action@v4