Skip to content

Commit

Permalink
ci: fix sending coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Feb 29, 2024
1 parent d6a4673 commit 8325323
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug
coverage: pcov
- name: Cache module
uses: actions/cache@v3
with:
Expand All @@ -77,10 +77,11 @@ jobs:
- name: Install dependencies
run: composer install --no-interaction ${{ matrix.composer-options }}
- name: Run php tests
run: composer run test
run: composer run test -- --coverage-clover=build/logs/clover.xml
- name: Send coverage
uses: codecov/codecov-action@v3
with:
files: ./build/logs/clover.xml
flags: php
fail_ci_if_error: true # optional (default = false)
name: phpunit-${{ matrix.php-version }}-${{ matrix.os }}

0 comments on commit 8325323

Please sign in to comment.