From cf15729130e323aa7bd2c5754ad3db6352326f9b Mon Sep 17 00:00:00 2001 From: Geoff Date: Sun, 28 Jun 2026 14:22:21 -0700 Subject: [PATCH 1/3] Send test results to Codecov --- .github/workflows/php.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 44ee7c8..3e60f34 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -87,11 +87,11 @@ jobs: - name: Run PHPUnit tests if: matrix.php-versions != env.code-coverage-version - run: composer run-script phpunit -- --no-coverage + run: composer run-script phpunit -- --no-coverage --log-junit tmp/junit.xml - name: Run PHPUnit tests with coverage if: matrix.php-versions == env.code-coverage-version - run: composer run-script phpunit + run: composer run-script phpunit -- --log-junit tmp/junit.xml # Ensure the next test run fetches the latest test ruleset. - name: Cleanup composer cache @@ -105,10 +105,17 @@ jobs: name: code-coverage path: tmp/code-coverage - - name: Upload code coverage to codecov + - name: Upload code coverage to Codecov if: matrix.php-versions == env.code-coverage-version uses: codecov/codecov-action@v7 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./tmp/code-coverage/clover.xml flags: phpunit + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/codecov-action@v7 + with: + token: ${{ secrets.CODECOV_TOKEN }} + report-type: test_results + files: ./tmp/junit.xml From 64e585144afaaec7ace7a3e3ba593ce8a1f9def3 Mon Sep 17 00:00:00 2001 From: Geoff Date: Sun, 28 Jun 2026 14:35:56 -0700 Subject: [PATCH 2/3] Fix argument name --- .github/workflows/php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 3e60f34..9ef7851 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -117,5 +117,5 @@ jobs: uses: codecov/codecov-action@v7 with: token: ${{ secrets.CODECOV_TOKEN }} - report-type: test_results + report_type: test_results files: ./tmp/junit.xml From 9ddfc39037925ff58a9e97feccd7977446cb6117 Mon Sep 17 00:00:00 2001 From: Geoff Date: Sun, 28 Jun 2026 14:49:35 -0700 Subject: [PATCH 3/3] flag test results with php version --- .github/workflows/php.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 9ef7851..5a4a597 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -118,4 +118,5 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} report_type: test_results + flags: ${{ format('php-{0}', matrix.php-versions) }} files: ./tmp/junit.xml