Skip to content

Commit 1c43725

Browse files
committed
Use cobertura for qlty coverage
1 parent 66cdfe0 commit 1c43725

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
run: vendor/bin/phan --allow-polyfill-parser
9898
- name: Run tests with coverage
9999
if: ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
100-
run: php vendor/bin/phpunit --coverage-clover=coverage.xml --log-junit=junit.xml
100+
run: php vendor/bin/phpunit --coverage-clover=coverage.xml --coverage-cobertura=cobertura.xml --log-junit=junit.xml
101101
- name: Upload coverage to Codecov
102102
if: ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
103103
uses: codecov/codecov-action@v5
@@ -113,7 +113,9 @@ jobs:
113113
uses: qltysh/qlty-action/coverage@v1
114114
with:
115115
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
116-
files: coverage.xml
116+
files: cobertura.xml
117+
strip-prefix: '/home/runner/work/mo4-coding-standard'
118+
add-prefix: 'MO4/Sniffs/'
117119
env:
118120
QLTY_COVERAGE_TOKEN: ${{ secrets.QLTY_COVERAGE_TOKEN }}
119121

0 commit comments

Comments
 (0)