File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,11 +87,11 @@ jobs:
8787
8888 - name : Run PHPUnit tests
8989 if : matrix.php-versions != env.code-coverage-version
90- run : composer run-script phpunit -- --no-coverage
90+ run : composer run-script phpunit -- --no-coverage --log-junit tmp/junit.xml
9191
9292 - name : Run PHPUnit tests with coverage
9393 if : matrix.php-versions == env.code-coverage-version
94- run : composer run-script phpunit
94+ run : composer run-script phpunit -- --log-junit tmp/junit.xml
9595
9696 # Ensure the next test run fetches the latest test ruleset.
9797 - name : Cleanup composer cache
@@ -105,10 +105,17 @@ jobs:
105105 name : code-coverage
106106 path : tmp/code-coverage
107107
108- - name : Upload code coverage to codecov
108+ - name : Upload code coverage to Codecov
109109 if : matrix.php-versions == env.code-coverage-version
110110 uses : codecov/codecov-action@v7
111111 with :
112112 token : ${{ secrets.CODECOV_TOKEN }}
113113 files : ./tmp/code-coverage/clover.xml
114114 flags : phpunit
115+ - name : Upload test results to Codecov
116+ if : ${{ !cancelled() }}
117+ uses : codecov/codecov-action@v7
118+ with :
119+ token : ${{ secrets.CODECOV_TOKEN }}
120+ report-type : test_results
121+ files : ./tmp/junit.xml
You can’t perform that action at this time.
0 commit comments