diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fe23261..e54001a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -45,4 +45,14 @@ jobs: composer-options: "--prefer-dist --no-progress" - name: Run tests - run: composer run test \ No newline at end of file + run: composer run test + + - name: Coverage report + run: XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-clover coverage.xml + + - name: Upload coverage reports to Codecov + run: | + # Replace `linux` below with the appropriate OS + curl -Os https://uploader.codecov.io/latest/linux/codecov + chmod +x codecov + ./codecov -t ${CODECOV_TOKEN} \ No newline at end of file