Skip to content

Commit 1ac1d07

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

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
push:
55
schedule:
66
- cron: '30 5 1 * *'
7+
8+
permissions:
9+
actions: write
10+
contents: read
11+
id-token: write
12+
713
jobs:
814
style-checks:
915
env:
@@ -100,7 +106,7 @@ jobs:
100106
run: vendor/bin/phan --allow-polyfill-parser
101107
- name: Run tests with coverage
102108
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
109+
run: php vendor/bin/phpunit --coverage-clover=coverage.xml --coverage-cobertura=cobertura.xml --log-junit=junit.xml
104110
- name: Upload coverage to Codecov
105111
if: ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
106112
uses: codecov/codecov-action@v5
@@ -115,8 +121,10 @@ jobs:
115121
if: ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
116122
uses: qltysh/qlty-action/coverage@v1
117123
with:
118-
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
119-
files: coverage.xml
124+
oidc: true
125+
files: cobertura.xml
126+
strip-prefix: '/home/runner/work/mo4-coding-standard'
127+
add-prefix: 'MO4/Sniffs/'
120128
env:
121129
QLTY_COVERAGE_TOKEN: ${{ secrets.QLTY_COVERAGE_TOKEN }}
122130

0 commit comments

Comments
 (0)