From 6e372f601533a9afc6544f82e273f98c0d385a7e Mon Sep 17 00:00:00 2001 From: Eric Stern Date: Wed, 15 Jul 2026 21:35:31 -0700 Subject: [PATCH] Try out native coverage for fun --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be4b915c..f1af087b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,9 @@ jobs: matrix: php: ['8.3', '8.4', '8.5'] name: PHP ${{ matrix.php }} + permissions: + contents: read + code-quality: write steps: - uses: actions/checkout@v7 @@ -31,6 +34,7 @@ jobs: run: composer phpunit -- --coverage-clover coverage.xml + --coverage-cobertura cobertura.xml --log-junit junit.xml - name: Upload coverage reports to Codecov @@ -46,5 +50,12 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} report_type: test_results + - name: Upload to GH coverage + uses: actions/upload-code-coverage@v1 + with: + file: cobertura.xml + language: PHP + label: coverage + - name: PHPStan run: composer phpstan