Skip to content

Commit

Permalink
ci: move coverage (#366)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
  • Loading branch information
jkowalleck committed Oct 17, 2023
1 parent 72f4afb commit 660b011
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/php.yml
Expand Up @@ -105,8 +105,8 @@ jobs:
-d pcov.enabled=1 -d pcov.directory=src
tools/phpunit/vendor/phpunit/phpunit/phpunit
--no-progress
--log-junit='${{ env.REPORTS_DIR }}/phpunit/tests.${{ matrix.os }}_php${{ matrix.php }}_${{ matrix.dependencies }}.junit.xml'
--coverage-'clover=${{ env.REPORTS_DIR }}/phpunit/coverage.${{ matrix.os}}_php${{ matrix.php }}_${{ matrix.dependencies }}.clover.xml'
--log-junit='${{ env.REPORTS_DIR }}/phpunit/tests/${{ matrix.os }}_php${{ matrix.php }}_${{ matrix.dependencies }}.junit.xml'
--coverage-clover='${{ env.REPORTS_DIR }}/phpunit/coverage/${{ matrix.os}}_php${{ matrix.php }}_${{ matrix.dependencies }}.clover.xml'
- name: Artifact reports
if: ${{ ! cancelled() }}
# see https://github.com/actions/upload-artifact
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ env.CODACY_PROJECT_TOKEN }}
coverage-reports: ${{ env.REPORTS_DIR }}/phpunit/coverage.*
coverage-reports: ${{ env.REPORTS_DIR }}/phpunit/coverage/*.clover.xml
code-checker:
name: Code Analysis (${{ matrix.php }}, ${{ matrix.dependencies }})
runs-on: ubuntu-latest
Expand Down

0 comments on commit 660b011

Please sign in to comment.