diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d3ed01..d743166 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,8 +23,22 @@ jobs: - uses: php-actions/composer@v6 # or alternative dependency management - - name: Run PHPUnit - run: vendor/bin/phpunit + - name: PHPUnit Tests + uses: php-actions/phpunit@v4 + env: + XDEBUG_MODE: coverage + with: + php_extensions: xdebug + args: tests --coverage-clover ./coverage.xml + + - name: Upload to Codecov + uses: codecov/codecov-action@v2 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./coverage.xml + verbose: true + + cs: name: Coding standards runs-on: ubuntu-latest diff --git a/.gitignore b/.gitignore index 529323a..999f612 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ coverage coverage.txt .phpcs-cache +coverage.xml