Skip to content

Commit e66220d

Browse files
authored
Update workflow.yml
1 parent 096fba2 commit e66220d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/workflow.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,17 @@ jobs:
3131
- name: Run Tests
3232
run: |
3333
php vendor/bin/phpunit --coverage-clover coverage.xml --configuration phpunit.xml tests
34-
34+
35+
- name: Convert Clover to Cobertura
36+
uses: actions/setup-node@v3
37+
with:
38+
node-version: 20
39+
- run: npx clover-to-cobertura ./coverage.xml > ./coverage-cobertura.xml
40+
3541
- uses: qltysh/qlty-action/coverage@v2
3642
with:
3743
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
38-
files: ./coverage.xml
44+
files: ./coverage-cobertura.xml
3945

4046
- name: Upload test results to Codecov
4147
if: ${{ !cancelled() }}

0 commit comments

Comments
 (0)