Skip to content

Commit c628203

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

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
schedule:
66
- cron: '30 5 1 * *'
7+
78
jobs:
89
style-checks:
910
env:
@@ -97,7 +98,7 @@ jobs:
9798
run: vendor/bin/phan --allow-polyfill-parser
9899
- name: Run tests with coverage
99100
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
101+
run: php vendor/bin/phpunit --coverage-clover=coverage.xml --coverage-cobertura=cobertura.xml --log-junit=junit.xml
101102
- name: Upload coverage to Codecov
102103
if: ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
103104
uses: codecov/codecov-action@v5
@@ -113,7 +114,9 @@ jobs:
113114
uses: qltysh/qlty-action/coverage@v1
114115
with:
115116
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
116-
files: coverage.xml
117+
files: cobertura.xml
118+
strip-prefix: '/home/runner/work/mo4-coding-standard'
119+
add-prefix: 'MO4/Sniffs/'
117120
env:
118121
QLTY_COVERAGE_TOKEN: ${{ secrets.QLTY_COVERAGE_TOKEN }}
119122

0 commit comments

Comments
 (0)