Skip to content

Commit 36865b7

Browse files
committed
Use cobertura for qlty coverage
1 parent e88599f commit 36865b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
run: vendor/bin/phan --allow-polyfill-parser
101101
- name: Run tests with coverage
102102
if: ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
103-
run: php vendor/bin/phpunit --coverage-clover=coverage.xml --log-junit=junit.xml
103+
run: php vendor/bin/phpunit --coverage-clover=coverage.xml --coverage-cobertura=cobertura.xml --log-junit=junit.xml
104104
- name: Upload coverage to Codecov
105105
if: ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
106106
uses: codecov/codecov-action@v5
@@ -116,7 +116,8 @@ jobs:
116116
uses: qltysh/qlty-action/coverage@v1
117117
with:
118118
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
119-
files: coverage.xml
119+
files: cobertura.xml
120+
add-prefix: 'MO4/Sniffs'
120121
env:
121122
QLTY_COVERAGE_TOKEN: ${{ secrets.QLTY_COVERAGE_TOKEN }}
122123

0 commit comments

Comments
 (0)