diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3545686..2470fdf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,9 +105,17 @@ jobs: php-version: ${{ matrix.php-version }} extensions: mbstring tools: none + coverage: xdebug - name: Install dependencies with Composer run: composer install --no-ansi --no-interaction --no-progress - name: Run tests with PHPUnit - run: vendor/bin/phpunit \ No newline at end of file + run: vendor/bin/phpunit --coverage-clover coverage-${{ matrix.php-version }}.xml + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + with: + files: coverage-*.xml + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file