diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index bb43769..646586f 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -26,6 +26,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} + coverage: xdebug - name: Dependencies installation run: composer update --no-interaction --prefer-dist @@ -33,6 +34,13 @@ jobs: - name: Run PHPUnit run: composer test + - name: Upload to Codecov + uses: codecov/codecov-action@v2 + with: + token: ${{ secrets.CODE_COV_TOKEN }} + files: ./coverage.xml + verbose: true + lint-and-fix: name: Lint code and fix code style runs-on: ubuntu-latest diff --git a/.gitignore b/.gitignore index 5750fb7..ee41f4e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ /composer.lock /.php-cs-fixer.cache /.phpunit.result.cache -/html-coverage \ No newline at end of file +/coverage.xml +/html-coverage diff --git a/phpunit.xml.dist b/phpunit.xml.dist index d1aa339..80a3247 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -22,6 +22,7 @@ src/ +